PermutationApplyT Method

Applies the permutation to a list.

Definition

Namespace: Meta.Numerics.Functions
Assembly: Meta.Numerics (in Meta.Numerics.dll) Version: 4.2.0+6d77d64445f7d5d91b12e331399c4362ecb25333
C#
public void Apply<T>(
	IList<T> x
)

Parameters

x  IListT
The list.

Type Parameters

T
The type of the list.

Remarks

Usefully for large arrays, the appliation is in-place, i.e. rather than allocate a second array and copy the elements to their target locations in the new array, the elements are moved within the single array provided, using an algorithm which ensures that no element is lost via uncontrolled overwriting.

See Also