Back to Aurora Vision Library Lite website

You are here: Start » All Functions » Array Transforms » TransposeArrayArray

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: avl

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
Input value inArrayArray const Array<Array<Type>>& Input array
Output value 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.