Permutation.Apply In Place Method
Definition
Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
Overload List
Apply | Applies the permutation by swapping elements. |
Apply | Applies the permutation to the rows of a permutable object. |
Apply | Applies the permutation to the components of an array. |
Apply | Applies the permutation to a list. |
ApplyInPlace(Action<Int32, Int32>)
Applies the permutation by swapping elements.
public void ApplyInPlace(
Action<int, int> swap
)
Parameters
- swap Action<Int32, Int32>
- An Action<T1, T2> delegate that takes two integer indexes and swaps the elements at these indexes.
Exceptions
Argument | swap is null. |
ApplyInPlace<T>(T[])
Applies the permutation to the components of an array.
public void ApplyInPlace<T>(
T[] array
)
Parameters
- array T[]
- The array whose components are to be permuted.
Type Parameters
- T
Exceptions
Argument | array is null. |
ApplyInPlace<T>(IList<T>)
Applies the permutation to a list.
public void ApplyInPlace<T>(
IList<T> list
)
Parameters
- list IList<T>
- The list to be permuted.
Type Parameters
- T
- The type of the members of the list.
Remarks
The elements of list are rearranged according to the permutation.
Exceptions
Argument | list is null. |
ApplyInPlace(IPermutable)
Applies the permutation to the rows of a permutable object.
public void ApplyInPlace(
IPermutable permutableObject
)
Parameters
- permutableObject IPermutable
- An object that implements IPermutable.
Exceptions
Argument | permutableObject is null. |