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

◆ Array() [4/4]

template<class T>
aff::Array< T >::Array ( const Tsize s0,
const Tsize s1 = 1,
const Tsize s2 = 1,
const Tsize s3 = 1 
)
inlineexplicit

construct from dimension sizes

Definition at line 444 of file array.h.

References aff::Strided::memory_size(), and aff::Array< T >::Mrepresentation.

446  {
447  Tshape newshape(s0, s1, s2, s3);
448  Mrepresentation=Trepresentation(newshape.memory_size());
449  this->Tbase::operator=(Tbase(newshape, Mrepresentation));
450  }
aff::ConstArray< T > Tbase
base is container of const (see specialization below)
Definition: array.h:372
aff::SharedHeap< T > Trepresentation
Type of representation.
Definition: array.h:397
aff::Strided Tshape
Type of subscriptor.
Definition: array.h:399
Trepresentation Mrepresentation
my (mutable) data representation
Definition: array.h:528
Here is the call graph for this function: