ARTS built-in documentation server

Workspace Method Flatten


Flattens an ArrayOfArray<T> to Array<T> or an Array
of matpack-types to a larger dimension matpack (if dimensions agree)

The intended transformation for arrays is (sub-arrays can have different sizes):
    {{a, b, c}, {d, e}} -> {a, b, c, d, e}

The intended transformation for arrays to matpack types is (sub-types must have same size):
    {{a, b, c}, {d, e, f}} -> {a, b, c, d, e, f}

Authors: Richard Larsson


Flatten( output, input )


GOUToutput(ArrayOfTime, ArrayOfVector, Matrix, Tensor3, Tensor4, Tensor5, Tensor6, Tensor7)Flatter array/matpack-type
GINinput(ArrayOfArrayOfTime, ArrayOfArrayOfVector, ArrayOfVector, ArrayOfMatrix, ArrayOfTensor3, ArrayOfTensor4, ArrayOfTensor5, ArrayOfTensor6)An array