From 77fccf7db1a146e8538fb65eb56b7920243528ae Mon Sep 17 00:00:00 2001 From: conrad Date: Sat, 9 Nov 2024 16:21:43 +1000 Subject: [PATCH] use threshold --- include/armadillo_bits/glue_solve_meat.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/armadillo_bits/glue_solve_meat.hpp b/include/armadillo_bits/glue_solve_meat.hpp index c759bfb9..baa0da94 100644 --- a/include/armadillo_bits/glue_solve_meat.hpp +++ b/include/armadillo_bits/glue_solve_meat.hpp @@ -167,8 +167,8 @@ glue_solve_gen_full::apply(Mat& actual_out, const Base& A_expr, const const bool is_triu = (no_trimat || refine || equilibrate || likely_sympd || is_band ) ? false : trimat_helper::is_triu(A); const bool is_tril = (no_trimat || refine || equilibrate || likely_sympd || is_band || is_triu) ? false : trimat_helper::is_tril(A); - const bool try_sympd = arma_config::optimise_sym && (( no_sympd || is_band || is_triu || is_tril || auxlib::crippled_lapack(A)) ? false : likely_sympd ); - const bool is_sym = arma_config::optimise_sym && ((likely_sympd || is_band || is_triu || is_tril || auxlib::crippled_lapack(A)) ? false : sym_helper::is_approx_sym(A)); + const bool try_sympd = arma_config::optimise_sym && (( no_sympd || is_band || is_triu || is_tril || auxlib::crippled_lapack(A)) ? false : likely_sympd ); + const bool is_sym = arma_config::optimise_sym && ((likely_sympd || is_band || is_triu || is_tril || auxlib::crippled_lapack(A)) ? false : sym_helper::is_approx_sym(A,uword(16))); if(fast) {