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

◆ shrink() [1/4]

Strided & aff::Strided::shrink ( const TIndexVec last)

subarray

Examples:
tests/shapetest.cc.

Definition at line 151 of file strided.cc.

References AFF_assert, aff::inline_anylarger(), aff::inline_anysmaller(), last(), Mfirst, and Mlast.

Referenced by collapse(), and aff::Shaper::operator Tshape().

152  {
154  "ERROR (Strided::shrink): index must not be smaller than first");
156  "ERROR (Strided::shrink): index must not be larger than last");
157  Mlast=last;
158  return(*this);
159  }
TIndexVec Mlast
Definition: strided.h:288
bool inline_anysmaller(const SimpleRigidArray< T, N > &A, const SimpleRigidArray< T, N > &B)
Returns true if any of A is smaller than corresponding B.
Definition: simplearray.h:188
bool inline_anylarger(const SimpleRigidArray< T, N > &A, const SimpleRigidArray< T, N > &B)
Returns true if any of A is larger than corresponding B.
Definition: simplearray.h:194
#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:
Here is the caller graph for this function: