MT Permute
- Updated2023-02-17
- 2 minute(s) read
MT Permute
Changes the position of input data elements based on values specified in the permutation array.
Inputs/Outputs

data in
The input data to be permuted. The data samples are rearranged into new locations as defined by the permutation array.

permutation array
An array whose elements define the location of the samples in the output data.

error in
Error conditions that occur before this node runs.
The node responds to this input according to standard error behavior.
Default value: No error

reset?
A Boolean that determines how this node handles buffered data.
| TRUE | Clears the buffered data, checks input parameters on a first call, and reflects any change in the input parameter values during subsequent iterations. |
| FALSE | Adds the buffered data to the beginning of the data for the next iteration. |
Default value: TRUE

data out
The permuted data returned by this node. The permuted data is typically passed through MT DePermute to retrieve the original data.

error out
Error information.
The node produces this output according to standard error behavior.
Theoretical Example of the Permutation Operation
The following is a theoretical example of the permutation operation.
If the data in array is 7,13,17,9,2, and the permutation array is 3,2,4,0,1, the data out array would be 9,21,13,7,17, as illustrated in the following figure.