TMtxInt.ColPermute Method

TMtxInt ColPermute(TMtxInt Src, TVecInt PermuteIdx)

Permute the columns of the Src matrix.

#NameTypeDescription
1SrcTMtxIntsource TMtxInt
2PermuteIdxTVecIntsource TVecInt

Result: stored in self (calling object), returns self for chaining

Remarks:

The parameter PermuteIdx contains indexes of columns P[i] to which column at Index "i" is to be moved. The result of the permutation is stored in the calling matrix. Only entire matrix can be copied.

See Also: TMtxInt.RowExchange, TMtxInt.RowPermute