ARTS
2.4.0(git:4fb77825)
|
Stuff related to manipulating arrays. More...
Go to the source code of this file.
Macros | |
#define | TIME_SORT_MACRO(VAR) |
#define | FLATTEN_MACRO(VAR) |
Functions | |
template<class T > | |
Array< T > | TimeSortTemplate (const Array< T > &arr, const ArrayOfTime &time_stamps) |
template<class T > | |
Array< T > | FlattenArrayTemplate (const Array< Array< T >> &in) |
void | Flatten (Matrix &out, const ArrayOfVector &in, const Verbosity &) |
WORKSPACE METHOD: Flatten. More... | |
void | Flatten (Tensor3 &out, const ArrayOfMatrix &in, const Verbosity &) |
WORKSPACE METHOD: Flatten. More... | |
void | Flatten (Tensor4 &out, const ArrayOfTensor3 &in, const Verbosity &) |
WORKSPACE METHOD: Flatten. More... | |
void | Flatten (Tensor5 &out, const ArrayOfTensor4 &in, const Verbosity &) |
WORKSPACE METHOD: Flatten. More... | |
void | Flatten (Tensor6 &out, const ArrayOfTensor5 &in, const Verbosity &) |
WORKSPACE METHOD: Flatten. More... | |
void | Flatten (Tensor7 &out, const ArrayOfTensor6 &in, const Verbosity &) |
WORKSPACE METHOD: Flatten. More... | |
#define FLATTEN_MACRO | ( | VAR | ) |
Definition at line 86 of file m_array.cc.
#define TIME_SORT_MACRO | ( | VAR | ) |
Definition at line 54 of file m_array.cc.
void Flatten | ( | Matrix & | out, |
const ArrayOfVector & | in, | ||
const Verbosity & | verbosity | ||
) |
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): <br> {{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): <br> {{a, b, c}, {d, e, f}} -> {a, b, c, d, e, f}
[out] | out | Supergeneric output |
[in] | in | Generic Input |
Definition at line 95 of file m_array.cc.
References joker, and Array< base >::nelem().
Referenced by Flatten_sg_ArrayOfTimeArrayOfArrayOfTime_g(), Flatten_sg_ArrayOfVectorArrayOfArrayOfVector_g(), Flatten_sg_MatrixArrayOfVector_g(), Flatten_sg_Tensor3ArrayOfMatrix_g(), Flatten_sg_Tensor4ArrayOfTensor3_g(), Flatten_sg_Tensor5ArrayOfTensor4_g(), Flatten_sg_Tensor6ArrayOfTensor5_g(), and Flatten_sg_Tensor7ArrayOfTensor6_g().
void Flatten | ( | Tensor3 & | out, |
const ArrayOfMatrix & | in, | ||
const Verbosity & | verbosity | ||
) |
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): <br> {{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): <br> {{a, b, c}, {d, e, f}} -> {a, b, c, d, e, f}
[out] | out | Supergeneric output |
[in] | in | Generic Input |
Definition at line 112 of file m_array.cc.
References Array< base >::nelem().
void Flatten | ( | Tensor4 & | out, |
const ArrayOfTensor3 & | in, | ||
const Verbosity & | verbosity | ||
) |
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): <br> {{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): <br> {{a, b, c}, {d, e, f}} -> {a, b, c, d, e, f}
[out] | out | Supergeneric output |
[in] | in | Generic Input |
Definition at line 133 of file m_array.cc.
References Array< base >::nelem().
void Flatten | ( | Tensor5 & | out, |
const ArrayOfTensor4 & | in, | ||
const Verbosity & | verbosity | ||
) |
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): <br> {{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): <br> {{a, b, c}, {d, e, f}} -> {a, b, c, d, e, f}
[out] | out | Supergeneric output |
[in] | in | Generic Input |
Definition at line 157 of file m_array.cc.
References Array< base >::nelem().
void Flatten | ( | Tensor6 & | out, |
const ArrayOfTensor5 & | in, | ||
const Verbosity & | verbosity | ||
) |
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): <br> {{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): <br> {{a, b, c}, {d, e, f}} -> {a, b, c, d, e, f}
[out] | out | Supergeneric output |
[in] | in | Generic Input |
Definition at line 184 of file m_array.cc.
References Array< base >::nelem().
void Flatten | ( | Tensor7 & | out, |
const ArrayOfTensor6 & | in, | ||
const Verbosity & | verbosity | ||
) |
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): <br> {{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): <br> {{a, b, c}, {d, e, f}} -> {a, b, c, d, e, f}
[out] | out | Supergeneric output |
[in] | in | Generic Input |
Definition at line 214 of file m_array.cc.
References Array< base >::nelem().
Definition at line 64 of file m_array.cc.
Array<T> TimeSortTemplate | ( | const Array< T > & | arr, |
const ArrayOfTime & | time_stamps | ||
) |
Definition at line 35 of file m_array.cc.
References get_sorted_indexes(), Array< base >::nelem(), and ARTS::Var::time_stamps().