mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-04-22 09:39:34 +08:00
enable testing of complex numbers for taucs
This commit is contained in:
parent
159c99a288
commit
877c3c00a2
@ -122,8 +122,7 @@ template<typename Scalar> void sparse_solvers(int rows, int cols)
|
|||||||
SparseLLT<SparseSelfAdjointMatrix,Cholmod>(m2).solveInPlace(x);
|
SparseLLT<SparseSelfAdjointMatrix,Cholmod>(m2).solveInPlace(x);
|
||||||
VERIFY(refX.isApprox(x,test_precision<Scalar>()) && "LLT: cholmod");
|
VERIFY(refX.isApprox(x,test_precision<Scalar>()) && "LLT: cholmod");
|
||||||
#endif
|
#endif
|
||||||
if (!NumTraits<Scalar>::IsComplex)
|
|
||||||
{
|
|
||||||
#ifdef EIGEN_TAUCS_SUPPORT
|
#ifdef EIGEN_TAUCS_SUPPORT
|
||||||
x = b;
|
x = b;
|
||||||
SparseLLT<SparseSelfAdjointMatrix,Taucs>(m2,IncompleteFactorization).solveInPlace(x);
|
SparseLLT<SparseSelfAdjointMatrix,Taucs>(m2,IncompleteFactorization).solveInPlace(x);
|
||||||
@ -136,7 +135,6 @@ template<typename Scalar> void sparse_solvers(int rows, int cols)
|
|||||||
VERIFY(refX.isApprox(x,test_precision<Scalar>()) && "LLT: taucs (SupernodalLeftLooking)");
|
VERIFY(refX.isApprox(x,test_precision<Scalar>()) && "LLT: taucs (SupernodalLeftLooking)");
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// test LDLT
|
// test LDLT
|
||||||
if (!NumTraits<Scalar>::IsComplex)
|
if (!NumTraits<Scalar>::IsComplex)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user