mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-09-23 06:43:13 +08:00
Changing BiCGSTAB parameters initialization so that it works with custom types
This commit is contained in:
parent
ab2b26fbc2
commit
23524ab6fc
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user