Permutes a vector.
Namespace:
Extreme.Mathematics
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public static Vector<T> Permute<T>(
this Vector<T> vector,
Permutation permutation
)
<ExtensionAttribute>
Public Shared Function Permute(Of T) (
vector As Vector(Of T),
permutation As Permutation
) As Vector(Of T)
public:
[ExtensionAttribute]
generic<typename T>
static Vector<T>^ Permute(
Vector<T>^ vector,
Permutation^ permutation
)
[<ExtensionAttribute>]
static member Permute :
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.
Type Parameters
- T
Return Value
Type:
VectorT
A new vector that contains the elements of
vector permuted using
permutation.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
VectorT. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
The original VectorT is left unchanged.
Reference