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
+1 -1
View File
@@ -13771,7 +13771,7 @@ the solution can be computed faster by explicitly indicating that <i>A</i> is tr
<tr><td><code>solve_opts::no_trimat</code></td><td>&nbsp;&nbsp;&nbsp;</td><td>do not use specialised solver for triangular matrices</td></tr>
<tr><td><code>solve_opts::no_sympd</code></td><td>&nbsp;&nbsp;&nbsp;</td><td>do not use specialised solver for symmetric/hermitian positive definite matrices</td></tr>
-->
<tr><td><code>solve_opts::force_sym</code></td><td>&nbsp;&nbsp;&nbsp;</td><td>force the use of the symmetric solver, bypassing the generic solver</td></tr>
<tr><td><code>solve_opts::force_sym</code></td><td>&nbsp;&nbsp;&nbsp;</td><td>force the use of the symmetric/hermitian solver, bypassing the generic solver</td></tr>
<tr><td><code>solve_opts::force_approx</code></td><td>&nbsp;&nbsp;&nbsp;</td><td>force the use of the approximate solver, bypassing the generic solver</td></tr>
</tbody>
</table>
+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" ); }
}