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

Check if an index is in bounds.

This function takes a two-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.rows() && j < M.cols()

for a given Matrix M.

Parameters:
iThe row value of the index to check.
jThe column value of the index to check.
See also:
inRange(uint)