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

◆ Strided() [4/4]

aff::Strided::Strided ( const Tsize s0,
const Tsize s1 = 1,
const Tsize s2 = 1,
const Tsize s3 = 1 
)
explicit

construct from given set of Fortran style sizes

construct from given Fortran sizes

Parameters
s0size of first dimension
s1size of second dimension
s2size of third dimension
s3size of fourth dimension
See also
Array layout

Definition at line 96 of file strided.cc.

References setup_from_size(), and size().

98  {
99  TSizeVec size;
100  size[0]=s0;
101  size[1]=s1;
102  size[2]=s2;
103  size[3]=s3;
104  setup_from_size(size, 1, 0);
105  }
void setup_from_size(const TSizeVec &size, const Tsubscript &first=1, const Tsubscript &shift=0)
setup to given size and first index
Definition: strided.cc:75
SimpleRigidArray< Tsize, Mmax_dimen > TSizeVec
type of size and stride array (always positive)
Definition: strided.h:126
Tsize size() const
total number of mapped elements
Definition: strided.cc:140
Here is the call graph for this function: