From ad2e8b738e73de135db36ae24d315ed492c8fc46 Mon Sep 17 00:00:00 2001 From: conrad Date: Wed, 31 Mar 2021 13:08:37 +1000 Subject: [PATCH] simpler message --- include/armadillo_bits/newarp_SparseGenRealShiftSolve_meat.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; }