Click or drag to resize

Permutations

Permutation of matrix columns/rows is specified by array of indices which denote the order of columns/rows in the resulting matrix. Note that indices start from 0.

Methods

Operation

Description

Performance

column permutation

Permutes columns of the matrix.

methodPermuteColumns(IntegerArray)

row permutation

Permutes rows of the matrix.

methodPermuteRows(IntegerArray)

Consider our matrix is: MPermute Ex

C#
1IntegerArray order = new IntegerArray { 1, 2, 0, 3 };
2A.PermuteColumns(order);

The result will be MPermute Ex Res

Rows permutation for the same matrix MPermute Ex :

C#
1IntegerArray order = new IntegerArray { 2, 1, 0 };
2A.PermuteRows(order);

The result will be MPermute Ex Res 1

See Also