mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-07-15 09:31:47 +08:00
Changing BiCGSTAB parameters initialization so that it works with custom types
(cherry picked from commit 23524ab6fcbf557b4ae1885d25d867727330c0c2)
This commit is contained in:
parent
26adb0e5af
commit
3eb0c8b69e
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user