diff options
Diffstat (limited to 'test/nullary.cpp')
-rw-r--r-- | test/nullary.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/nullary.cpp b/test/nullary.cpp index dd42cb898..3a46e10c7 100644 --- a/test/nullary.cpp +++ b/test/nullary.cpp @@ -37,7 +37,7 @@ bool equalsIdentity(const MatrixType& A) } } for (int i = 0; i < A.rows(); ++i) { - for (int j = 0; j < i; ++j) { + for (int j = 0; j < std::min(i, A.cols()); ++j) { offDiagOK = offDiagOK && (A(i,j) == zero); } } |