From 23524ab6fcbf557b4ae1885d25d867727330c0c2 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 --- 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 079b22d14..76195c70c 100644 --- a/Eigen/src/IterativeLinearSolvers/BiCGSTAB.h +++ b/Eigen/src/IterativeLinearSolvers/BiCGSTAB.h @@ -51,9 +51,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);