big reorganisation of asserts, so that:

0) asserts are only done in the public API, except for a few ones explicitly
   named eigen_internal_assert.
1) internal asserts are disabled unless EIGEN_INTERNAL_DEBUGGING is defined.
   This limits the impact of debugging on performance.
2) no 'unused argument' warnings anymore when compiling with -DNDEBUG
This commit is contained in:
Benoit Jacob
2007-12-05 08:56:42 +00:00
parent b569216dc3
commit 68eba600b1
10 changed files with 124 additions and 75 deletions

View File

@@ -44,7 +44,8 @@ template<typename MatrixType> class Minor
int row, int col)
: m_matrix(matrix), m_row(row), m_col(col)
{
EIGEN_CHECK_RANGES(matrix, row, col);
assert(row >= 0 && row < matrix.rows()
&& col >= 0 && col < matrix.cols());
}
Minor(const Minor& other)