From e46fc8c05c7ce8fb903282dbc30fa72e02d66ff5 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Sat, 23 Jun 2012 19:29:21 +0200 Subject: [PATCH] fix GMRES --- unsupported/Eigen/src/IterativeSolvers/GMRES.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unsupported/Eigen/src/IterativeSolvers/GMRES.h b/unsupported/Eigen/src/IterativeSolvers/GMRES.h index 3b74e44aa..e100617d1 100644 --- a/unsupported/Eigen/src/IterativeSolvers/GMRES.h +++ b/unsupported/Eigen/src/IterativeSolvers/GMRES.h @@ -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;