diff --git a/docs.html b/docs.html index 756b8abe..bcd3af83 100644 --- a/docs.html +++ b/docs.html @@ -13771,7 +13771,7 @@ the solution can be computed faster by explicitly indicating that A is tr solve_opts::no_trimat   do not use specialised solver for triangular matrices solve_opts::no_sympd   do not use specialised solver for symmetric/hermitian positive definite matrices --> -solve_opts::force_sym   force the use of the symmetric solver, bypassing the generic solver +solve_opts::force_sym   force the use of the symmetric/hermitian solver, bypassing the generic solver solve_opts::force_approx   force the use of the approximate solver, bypassing the generic solver diff --git a/include/armadillo_bits/glue_solve_meat.hpp b/include/armadillo_bits/glue_solve_meat.hpp index dc597084..4e319773 100644 --- a/include/armadillo_bits/glue_solve_meat.hpp +++ b/include/armadillo_bits/glue_solve_meat.hpp @@ -144,7 +144,11 @@ glue_solve_gen_full::apply(Mat& actual_out, const Base& A_expr, const if(force_sym) { - if((arma_config::check_conform) && (auxlib::rudimentary_sym_check(A) == false)) { arma_warn(1, "solve(): option 'force_sym' enabled, but given matrix is not symmetric"); } + if((arma_config::check_conform) && (auxlib::rudimentary_sym_check(A) == false)) + { + if(is_cx::no) { arma_warn(1, "solve(): option 'force_sym' enabled, but given matrix is not symmetric"); } + if(is_cx::yes) { arma_warn(1, "solve(): option 'force_sym' enabled, but given matrix is not hermitian"); } + } if(likely_sympd) { arma_warn(2, "solve(): option 'likely_sympd' ignored for forced symmetric solver" ); } }