mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
bug #897: fix regression in BiCGSTAB(mat) ctor (an all other iterative solvers).
Add respective regression unit test.
This commit is contained in:
@@ -83,6 +83,15 @@ void check_sparse_solving(Solver& solver, const typename Solver::MatrixType& A,
|
||||
VERIFY(xm.isApprox(refX,test_precision<Scalar>()));
|
||||
}
|
||||
|
||||
// test initialization ctor
|
||||
{
|
||||
Rhs x(b.rows(), b.cols());
|
||||
Solver solver2(A);
|
||||
VERIFY(solver2.info() == Success);
|
||||
x = solver2.solve(b);
|
||||
VERIFY(x.isApprox(refX,test_precision<Scalar>()));
|
||||
}
|
||||
|
||||
// test dense Block as the result and rhs:
|
||||
{
|
||||
DenseRhs x(db.rows(), db.cols());
|
||||
|
||||
Reference in New Issue
Block a user