IPermutable Interface

Represents the contract for a collection that allows its elements to be permuted.

Definition

Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
public interface IPermutable

Remarks

Use the IPermutable interface to allow the elements of a collection to be permuted. Although any IList or List<T> can be permuted, some collections may require a specific implementation, or may take advantage of optimizations specific to the type of collection.

Methods

PermuteInPlace Permutes the object using the specified permutation.
Swap Swaps the items at the specified index in the object.

See Also