create a series container from an array container.
79 typename Tarray::Tshape shape(array.
shape());
81 "ERROR: array is not suitable to be converted to series");
82 typename Tseries::Trepresentation representation=array.
representation();
83 typename Tseries::Tshape seriesshape(shape.first(0),
85 shape.first_offset());
86 Tseries retval(seriesshape, representation);
const Trepresentation & representation() const
provide restricted access representation
bool is_dense_1D_array(const aff::Strided &shape)
check whether array shape describes a 1D array with dense layout in the memory.
#define AFF_assert(C, M)
Check an assertion and report by throwing an exception.
const Tshape & shape() const
provide access to const shape
Array base classThis is a multidimensional (array) container that uses a strided memory layout (Fortr...