From 3eb0c8b69e3a3da47d92bf2c34f3903eef67a139 Mon Sep 17 00:00:00 2001 From: Alexandre Hoffmann Date: Tue, 29 Nov 2022 19:37:46 +0000 Subject: [PATCH] Changing BiCGSTAB parameters initialization so that it works with custom types (cherry picked from commit 23524ab6fcbf557b4ae1885d25d867727330c0c2) --- Eigen/src/IterativeLinearSolvers/BiCGSTAB.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Eigen/src/IterativeLinearSolvers/BiCGSTAB.h b/Eigen/src/IterativeLinearSolvers/BiCGSTAB.h index 153acef65..1c9ade562 100644 --- a/Eigen/src/IterativeLinearSolvers/BiCGSTAB.h +++ b/Eigen/src/IterativeLinearSolvers/BiCGSTAB.h @@ -49,9 +49,9 @@ bool bicgstab(const MatrixType& mat, const Rhs& rhs, Dest& x, x.setZero(); return true; } - Scalar rho = 1; - Scalar alpha = 1; - Scalar w = 1; + Scalar rho (1); + Scalar alpha (1); + Scalar w (1); VectorType v = VectorType::Zero(n), p = VectorType::Zero(n); VectorType y(n), z(n);