AFF --- A container for numbers (array) by Friederich and Forbriger.

◆ Subarray()

template<class C >
aff::util::Subarray< C >::Subarray ( const Tarray array)
inline

Constructor takes a reference to an array.

Definition at line 90 of file subarray.h.

References aff::util::Subarray< C >::array(), aff::util::Subarray< C >::Mdim, aff::util::Subarray< C >::Mrepresentation, and aff::util::Subarray< C >::Mshape.

91  {
92  // notice: a const Array does not return its representation
93  // thus we create a local (non-const) copy
94  // that's truely inefficient (copying the shape twice)
95  Tarray copy=array;
96  Mshape=copy.shape();
97  Mrepresentation=copy.representation();
98  Mdim=0;
99  }
Tshape Mshape
Shape to process.
Definition: subarray.h:142
Tdim Mdim
Dimension to specify.
Definition: subarray.h:146
Trepresentation Mrepresentation
Representation to use.
Definition: subarray.h:144
Tarray array() const
return an array
Definition: subarray.h:129
C Tarray
Type of array to be handled.
Definition: subarray.h:76
Here is the call graph for this function: