#ifndef BZ_RANGE_CC #define BZ_RANGE_CC #include #include BZ_NAMESPACE(blitz) inline Range::T_numtype Range::operator[](int i) const { return first_ + i * stride_; } inline RectDomain Range::domain() const { return RectDomain(TinyVector(0), TinyVector(ubound(0))); } inline bool Range::assertInRange(const T_index& BZ_DEBUG_PARAM(index)) const { BZPRECHECK((index[0]<=ubound(0)) && (index[0]>=0), "Range index out of range: " << index[0] << endl << "Lower bounds: 0" << endl << "Length: " << length() << endl); return true; } BZ_NAMESPACE_END #endif