mirror of
https://gitlab.com/libeigen/eigen.git
synced 2024-12-09 07:00:27 +08:00
fix GMRES
This commit is contained in:
parent
cc6dd55028
commit
e46fc8c05c
@ -128,7 +128,7 @@ bool gmres(const MatrixType & mat, const Rhs & rhs, Dest & x, const Precondition
|
||||
if (k <= restart) {
|
||||
|
||||
// generate new Householder vector
|
||||
VectorType e;
|
||||
VectorType e(m - k - 1);
|
||||
RealScalar beta;
|
||||
v.tail(m - k).makeHouseholder(e, tau.coeffRef(k), beta);
|
||||
H.col(k).tail(m - k - 1) = e;
|
||||
|
Loading…
Reference in New Issue
Block a user