mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Allows Lower|Upper as a template argument of CG and MINRES: in this case the full matrix will be considered.
This commit is contained in:
@@ -161,7 +161,10 @@ int generate_sparse_spd_problem(Solver& , typename Solver::MatrixType& A, typena
|
||||
dA = dM * dM.adjoint();
|
||||
|
||||
halfA.resize(size,size);
|
||||
halfA.template selfadjointView<Solver::UpLo>().rankUpdate(M);
|
||||
if(Solver::UpLo==(Lower|Upper))
|
||||
halfA = A;
|
||||
else
|
||||
halfA.template selfadjointView<Solver::UpLo>().rankUpdate(M);
|
||||
|
||||
return size;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user