casacore
|
Concatenate two Arrays. More...
#include <ArrayUtil.h>
Public Member Functions | |
template<class T > | |
Array< T > | concatenateArray (const Array< T > &left, const Array< T > &right) |
Concatenate two Arrays.
concatenateArray concatenates two Arrays into a new Array.
The function concatenates two Arrays into a new Array. The shape of both arrays must match except for the last dimension. The shape of the resulting array is equal to that of the input arrays with its last dimension as the sum of both last dimensions.
An exception ArrayConformanceError is thrown when the shapes do not match.
The table system needed this function.
The example above results in a vector with length 15 and values 0,1,2,3,4,0,1,2,3,4,5,6,7,8,9.
It can also be used with matrices or arrays with higher dimensionality as long as all dimensions but the last one have equal length.
Definition at line 167 of file ArrayUtil.h.
Array<T> casacore::ArrayUtil_global_functions_concatenateArray::concatenateArray | ( | const Array< T > & | left, |
const Array< T > & | right | ||
) |