From bf69c85cb8892be33ec74f70672b5305aaeecd4d Mon Sep 17 00:00:00 2001 From: conrad Date: Tue, 7 Apr 2026 10:56:08 +1000 Subject: [PATCH] show rcond earlier to avoid potential confusion --- include/armadillo_bits/glue_solve_meat.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/armadillo_bits/glue_solve_meat.hpp b/include/armadillo_bits/glue_solve_meat.hpp index 613bd237..830f4c85 100644 --- a/include/armadillo_bits/glue_solve_meat.hpp +++ b/include/armadillo_bits/glue_solve_meat.hpp @@ -380,7 +380,7 @@ glue_solve_gen_full::apply(Mat& actual_out, const Base& A_expr, const } else { - arma_warn(2, "solve(): system is singular; attempting approx solution; rcond: ", rcond); + arma_warn(2, "solve(): system is singular; rcond: ", rcond, "; attempting approx solution"); } // TODO: conditionally recreate A: have a separate state flag which indicates whether A was previously overwritten @@ -472,7 +472,7 @@ glue_solve_tri_default::apply(Mat& actual_out, const Base& A_expr, co } else { - arma_warn(2, "solve(): system is singular; attempting approx solution; rcond: ", rcond); + arma_warn(2, "solve(): system is singular; rcond: ", rcond, "; attempting approx solution"); } Mat triA = (triu) ? trimatu(A) : trimatl(A); // trimatu() and trimatl() return the same type @@ -598,7 +598,7 @@ glue_solve_tri_full::apply(Mat& actual_out, const Base& A_expr, const } else { - arma_warn(2, "solve(): system is singular; attempting approx solution; rcond: ", rcond); + arma_warn(2, "solve(): system is singular; rcond: ", rcond, "; attempting approx solution"); } Mat triA = (triu) ? trimatu(A) : trimatl(A); // trimatu() and trimatl() return the same type