Permutation.Apply In Place Method
Definition
Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
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. |
Apply | Applies the permutation to a span. |
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. |
ApplyInPlace<T>(Span<T>)
Applies the permutation to a span.
public void ApplyInPlace<T>(
Span<T> span
)
Parameters
- span Span<T>
- The span whose elements are to be permuted.
Type Parameters
- T
Exceptions
Argument | span is null. |