Permutes a vector.
Namespace:
Extreme.Mathematics
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public static Vector<T> PermuteInPlace(
Vector<T> vector,
Permutation permutation
)
Public Shared Function PermuteInPlace (
vector As Vector(Of T),
permutation As Permutation
) As Vector(Of T)
public:
static Vector<T>^ PermuteInPlace(
Vector<T>^ vector,
Permutation^ permutation
)
static member PermuteInPlace :
vector : Vector<'T> *
permutation : Permutation -> Vector<'T>
Parameters
- vector
- Type: Extreme.MathematicsVectorT
The vector to permute. - permutation
- Type: Extreme.MathematicsPermutation
The Permutation to apply to the vector.
Return Value
Type:
VectorT
A new vector that contains the elements of
vector permuted using
permutation.
The original VectorT is left unchanged.
Reference