Back to Adaptive Vision Library websiteYou are here:
Start »
Function Reference »
Array Transforms »
TransposeArrayArray
This is Filter Equivalent. This function may be present in generated code, but should not be used in hand-written code.
Transposes a matrix represented as an array of arrays.
Syntax
void avl::TransposeArrayArray
(
const atl::Array<atl::Array<Type>>& inArrayArray,
atl::Array<atl::Array<Type>>& outArrayArray
)
Parameters
|
Name |
Type |
Default |
Description |
|
inArrayArray |
const Array<Array<Type>>& |
|
Input array |
|
outArrayArray |
Array<Array<Type>>& |
|
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
Error type |
Description |
DomainError |
Inconsistent array lengths in TransposeArrayArray. |