mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
patch from Moritz Lenz to allow solving transposed problem with superlu
This commit is contained in:
@@ -191,6 +191,14 @@ template<typename Scalar> void sparse_solvers(int rows, int cols)
|
||||
VERIFY(refX.isApprox(x,test_precision<Scalar>()) && "LU: SuperLU");
|
||||
}
|
||||
// std::cerr << refDet << " == " << slu.determinant() << "\n";
|
||||
if (slu.solve(b, &x, SvTranspose)) {
|
||||
VERIFY(b.isApprox(m2.transpose() * x, test_precision<Scalar>()));
|
||||
}
|
||||
|
||||
if (slu.solve(b, &x, SvAdjoint)) {
|
||||
// VERIFY(b.isApprox(m2.adjoint() * x, test_precision<Scalar>()));
|
||||
}
|
||||
|
||||
if (count==0) {
|
||||
VERIFY_IS_APPROX(refDet,slu.determinant()); // FIXME det is not very stable for complex
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user