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().
154 "ERROR (Strided::shrink): index must not be smaller than first");
156 "ERROR (Strided::shrink): index must not be larger than last");
bool inline_anysmaller(const SimpleRigidArray< T, N > &A, const SimpleRigidArray< T, N > &B)
Returns true if any of A is smaller than corresponding B.
bool inline_anylarger(const SimpleRigidArray< T, N > &A, const SimpleRigidArray< T, N > &B)
Returns true if any of A is larger than corresponding B.
#define AFF_assert(C, M)
Check an assertion and report by throwing an exception.
const TIndexVec & last() const
return vector of last index values