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

◆ setfirst() [2/2]

Strided & aff::Strided::setfirst ( const TIndexVec index)

setfirst

Definition at line 290 of file strided.cc.

References Mfirst, Mmax_dimen, and shift().

291  {
292  TIndexVec ishift(index);
293  for (Tdim i=0; i<Mmax_dimen; i++)
294  {
295  ishift[i]-=Mfirst[i];
296  }
297  return(this->shift(ishift));
298  }
Strided & shift(const Tdim &i, const Tsubscript &index)
shift
Definition: strided.cc:250
static const Tdim Mmax_dimen
instantiate static member (otherwise the linker won&#39;t find it)
Definition: strided.h:123
unsigned short int Tdim
Type to hold an array dimensionality.
Definition: types.h:49
SimpleRigidArray< Tsubscript, Mmax_dimen > TIndexVec
type of limit arrays (any sign)
Definition: strided.h:128
TIndexVec Mfirst
Definition: strided.h:287
Here is the call graph for this function: