Scythe-1.0.3
template<matrix_order ORDER = Col, matrix_style STYLE = Concrete>
bool scythe::Matrix_base< ORDER, STYLE >::inRange ( uint  i) const [inline]

Check if an index is in bounds.

This function takes a single-argument index into a Matrix and returns true iff that index is within the bounds of the Matrix. This function is equivalent to the expression:

 i < M.size()

for a given Matrix M.

Parameters:
iThe element index to check.
See also:
inRange(uint, uint)

Referenced by scythe::Matrix< T_type, M_ORDER, M_STYLE >::operator()(), and scythe::Matrix< T_type, M_ORDER, M_STYLE >::operator[]().