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

◆ shrink() [2/2]

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

set last index of dimension i to last (used by aff::util::Subarray)

Definition at line 128 of file linearshape.h.

References AFF_assert, and setlastindex().

130  {
131  AFF_assert((i==0),"ERROR (LinearShape::shrink): illegal dimension!");
132  this->setlastindex(last);
133  return(*this);
134  }
void setlastindex(const Tsubscript &last)
set last index to last
Definition: linearshape.h:152
#define AFF_assert(C, M)
Check an assertion and report by throwing an exception.
Definition: error.h:162
const Tsubscript & last() const
return last legal index
Definition: linearshape.h:107
Here is the call graph for this function: