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

◆ shrink() [1/2]

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

set index range [ first , last ] for dimension i (used by aff::util::Subarray)

Definition at line 119 of file linearshape.h.

References AFF_assert, last(), and setindexrange().

121  {
122  AFF_assert((i==0),"ERROR (LinearShape::shrink): illegal dimension!");
123  this->setindexrange(first, last);
124  return(*this);
125  }
#define AFF_assert(C, M)
Check an assertion and report by throwing an exception.
Definition: error.h:162
const Tsubscript & first() const
return first legal index
Definition: linearshape.h:105
void setindexrange(const Tsubscript &first, const Tsubscript last)
set index range [ first , last ]
Definition: linearshape.h:136
const Tsubscript & last() const
return last legal index
Definition: linearshape.h:107
Here is the call graph for this function: