From d7e1eeaece4e872c804eb594539ae536c8187372 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Tue, 4 Jan 2011 14:40:06 +0100 Subject: [PATCH] fix compilation when defaulting to row major --- unsupported/test/sparse_llt.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/unsupported/test/sparse_llt.cpp b/unsupported/test/sparse_llt.cpp index 2fcd8b279..df198cd52 100644 --- a/unsupported/test/sparse_llt.cpp +++ b/unsupported/test/sparse_llt.cpp @@ -102,11 +102,14 @@ template void sparse_llt(int rows, int cols) // with multiple rhs ref_X = refMat3.template selfadjointView().llt().solve(B); + #ifndef EIGEN_DEFAULT_TO_ROW_MAJOR + // TODO make sure the API is properly documented about this fact X = CholmodDecomposition, Lower>(m3).solve(B); VERIFY(ref_X.isApprox(X,test_precision()) && "LLT: cholmod solve, multiple dense rhs"); X = CholmodDecomposition, Upper>(m3).solve(B); VERIFY(ref_X.isApprox(X,test_precision()) && "LLT: cholmod solve, multiple dense rhs"); + #endif // with a sparse rhs