This commit is contained in:
conrad
2024-11-11 14:48:44 +10:00
parent 670ca673f8
commit 943fe56b61
2 changed files with 6 additions and 2 deletions
+5 -1
View File
@@ -144,7 +144,11 @@ glue_solve_gen_full::apply(Mat<eT>& actual_out, const Base<eT,T1>& 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<eT>::no) { arma_warn(1, "solve(): option 'force_sym' enabled, but given matrix is not symmetric"); }
if(is_cx<eT>::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" ); }
}