diff --git a/include/armadillo_bits/newarp_SparseGenRealShiftSolve_meat.hpp b/include/armadillo_bits/newarp_SparseGenRealShiftSolve_meat.hpp index cc2087c9..f1c0681d 100644 --- a/include/armadillo_bits/newarp_SparseGenRealShiftSolve_meat.hpp +++ b/include/armadillo_bits/newarp_SparseGenRealShiftSolve_meat.hpp @@ -73,7 +73,8 @@ SparseGenRealShiftSolve::SparseGenRealShiftSolve(const SpMat& mat_obj, c if( (x_rcond < std::numeric_limits::epsilon()) || arma_isnan(x_rcond) ) { - arma_debug_warn_level(2, "matrix is singular to working precision (rcond: ", x_rcond, ")"); + if(x_cond > eT(0)) { arma_debug_warn_level(2, "matrix is singular to working precision (rcond: ", x_rcond, ")"); } + else { arma_debug_warn_level(2, "matrix is singular to working precision"); } return; }