mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-12 03:39:01 +08:00
fix GMRES
(transplanted from e46fc8c05c7ce8fb903282dbc30fa72e02d66ff5 )
This commit is contained in:
parent
9c2cc0b243
commit
dd3cd5455e
@ -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