Back to Adaptive Vision Studio website

You are here: Start » Filter Reference » Array Transforms » TransposeArrayArray

TransposeArrayArray


Transposes a matrix represented as an array of arrays.

Name Type Description
inArrayArray <T>ArrayArray Input array
outArrayArray <T>ArrayArray Output array

Examples

inArrayArray = { {1, 2, 3}, {5, 6, 7} }
outArrayArray = { {1, 5}, {2, 6}, {3, 7} }

Remarks

Inner arrays (i.e. columns) have to be of equal size.

Errors

This filter can throw an exception to report error. Read how to deal with errors here: Error Handling

Error type Description
DomainError Inconsistent array lengths in TransposeArrayArray.

Complexity Level

This filter is available on Basic Complexity Level.