diff --git a/test/sparse_solvers.cpp b/test/sparse_solvers.cpp index ce19153ff..1f159801b 100644 --- a/test/sparse_solvers.cpp +++ b/test/sparse_solvers.cpp @@ -122,20 +122,18 @@ template void sparse_solvers(int rows, int cols) SparseLLT(m2).solveInPlace(x); VERIFY(refX.isApprox(x,test_precision()) && "LLT: cholmod"); #endif - if (!NumTraits::IsComplex) - { - #ifdef EIGEN_TAUCS_SUPPORT - x = b; - SparseLLT(m2,IncompleteFactorization).solveInPlace(x); - VERIFY(refX.isApprox(x,test_precision()) && "LLT: taucs (IncompleteFactorization)"); - x = b; - SparseLLT(m2,SupernodalMultifrontal).solveInPlace(x); - VERIFY(refX.isApprox(x,test_precision()) && "LLT: taucs (SupernodalMultifrontal)"); - x = b; - SparseLLT(m2,SupernodalLeftLooking).solveInPlace(x); - VERIFY(refX.isApprox(x,test_precision()) && "LLT: taucs (SupernodalLeftLooking)"); - #endif - } + + #ifdef EIGEN_TAUCS_SUPPORT + x = b; + SparseLLT(m2,IncompleteFactorization).solveInPlace(x); + VERIFY(refX.isApprox(x,test_precision()) && "LLT: taucs (IncompleteFactorization)"); + x = b; + SparseLLT(m2,SupernodalMultifrontal).solveInPlace(x); + VERIFY(refX.isApprox(x,test_precision()) && "LLT: taucs (SupernodalMultifrontal)"); + x = b; + SparseLLT(m2,SupernodalLeftLooking).solveInPlace(x); + VERIFY(refX.isApprox(x,test_precision()) && "LLT: taucs (SupernodalLeftLooking)"); + #endif } // test LDLT