From 877c3c00a2eb7ee896d8f5febc5dddec70a27490 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Tue, 12 May 2009 13:43:40 +0000 Subject: [PATCH] enable testing of complex numbers for taucs --- test/sparse_solvers.cpp | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) 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