fix
This commit is contained in:
@@ -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> </td><td>do not use specialised solver for triangular matrices</td></tr>
|
||||
<tr><td><code>solve_opts::no_sympd</code></td><td> </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> </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> </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> </td><td>force the use of the approximate solver, bypassing the generic solver</td></tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
@@ -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" ); }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user