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

◆ setfirst() [1/2]

Strided & aff::Strided::setfirst ( const Tdim i,
const Tsubscript index 
)

setfirst

Definition at line 279 of file strided.cc.

References AFF_assert, Mfirst, Mmax_dimen, and shift().

Referenced by aff::util::FortranShape::FortranShape().

280  {
282  "ERROR (Strided::setfirst): illegal dimension");
283  Tsubscript ishift=index-Mfirst[i];
284  return(this->shift(i, ishift));
285  }
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't find it)
Definition: strided.h:123
#define AFF_assert(C, M)
Check an assertion and report by throwing an exception.
Definition: error.h:162
ptrdiff_t Tsubscript
Type to hold an array's subscript value.
Definition: types.h:53
TIndexVec Mfirst
Definition: strided.h:287
Here is the call graph for this function:
Here is the caller graph for this function: