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

◆ shrink() [4/4]

Strided & aff::Strided::shrink ( const Tdim i,
const Tsubscript last 
)

subarray

Definition at line 205 of file strided.cc.

References AFF_assert, last(), Mfirst, Mlast, and Mmax_dimen.

207  {
209  "ERROR (Strided::shrink): illegal dimension");
210  AFF_assert(((Mfirst[i]<=last)&&(last<=Mlast[i])),
211  "ERROR (Strided::shrink): illegal index value");
212  Mlast[i]=last;
213  return(*this);
214  }
TIndexVec Mlast
Definition: strided.h:288
static const Tdim Mmax_dimen
instantiate static member (otherwise the linker won&#39;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
const TIndexVec & last() const
return vector of last index values
Definition: strided.h:208
TIndexVec Mfirst
Definition: strided.h:287
Here is the call graph for this function: