mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-07-27 15:22:00 +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) {
|
if (k <= restart) {
|
||||||
|
|
||||||
// generate new Householder vector
|
// generate new Householder vector
|
||||||
VectorType e;
|
VectorType e(m - k - 1);
|
||||||
RealScalar beta;
|
RealScalar beta;
|
||||||
v.tail(m - k).makeHouseholder(e, tau.coeffRef(k), beta);
|
v.tail(m - k).makeHouseholder(e, tau.coeffRef(k), beta);
|
||||||
H.col(k).tail(m - k - 1) = e;
|
H.col(k).tail(m - k - 1) = e;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user