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

◆ Array() [3/4]

template<class T>
aff::Array< T >::Array ( const Tshape shape)
inlineexplicit

construct from shape (defines size and layout)

Definition at line 437 of file array.h.

References aff::Strided::first(), aff::Strided::last(), aff::Array< T >::Mrepresentation, and aff::ConstArray< T >::shape().

438  {
439  Tshape newshape(shape.first(), shape.last());
440  Mrepresentation=Trepresentation(newshape.memory_size());
441  this->Tbase::operator=(Tbase(newshape, Mrepresentation));
442  }
aff::ConstArray< T > Tbase
base is container of const (see specialization below)
Definition: array.h:372
const Tsubscript & first(const Tsubscript &i) const
first index of dimension
Definition: strided.h:194
const Tshape & shape() const
provide access to const shape
Definition: array.h:318
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
const Tsubscript & last(const Tsubscript &i) const
last index of dimension
Definition: strided.h:197
Here is the call graph for this function: