Back to FabImage Library websiteYou are here:
Start »
Function Reference »
All Functions »
Array Transforms »
TransposeArrayArray
This is Filter Equivalent. This function may be present in generated code, but should not be used in hand-written code.
Header: |
STD.h
|
Namespace: |
fil |
Module: |
FoundationLite |
Transposes a matrix represented as an array of arrays.
Syntax
void fil::TransposeArrayArray
(
const ftl::Array<ftl::Array<Type>>& inArrayArray,
ftl::Array<ftl::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
List of possible exceptions:
Error type |
Description |
DomainError |
Inconsistent array lengths in TransposeArrayArray. |