Changing BiCGSTAB parameters initialization so that it works with custom types

(cherry picked from commit 23524ab6fc)
This commit is contained in:
Alexandre Hoffmann
2022-11-29 19:37:46 +00:00
committed by Antonio Sanchez
parent 26adb0e5af
commit 3eb0c8b69e

View File

@@ -49,9 +49,9 @@ bool bicgstab(const MatrixType& mat, const Rhs& rhs, Dest& x,
x.setZero(); x.setZero();
return true; return true;
} }
Scalar rho = 1; Scalar rho (1);
Scalar alpha = 1; Scalar alpha (1);
Scalar w = 1; Scalar w (1);
VectorType v = VectorType::Zero(n), p = VectorType::Zero(n); VectorType v = VectorType::Zero(n), p = VectorType::Zero(n);
VectorType y(n), z(n); VectorType y(n), z(n);