aboutsummaryrefslogtreecommitdiffhomepage
path: root/unsupported
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2011-01-04 14:40:06 +0100
committerGravatar Gael Guennebaud <g.gael@free.fr>2011-01-04 14:40:06 +0100
commitd7e1eeaece4e872c804eb594539ae536c8187372 (patch)
tree264051eeb49e82604c232e8b082b5cfe8188906d /unsupported
parent3a4d56171d9a5674ad7a66bef5eb62fec77dd5fe (diff)
fix compilation when defaulting to row major
Diffstat (limited to 'unsupported')
-rw-r--r--unsupported/test/sparse_llt.cpp3
1 files changed, 3 insertions, 0 deletions
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<typename Scalar> void sparse_llt(int rows, int cols)
// with multiple rhs
ref_X = refMat3.template selfadjointView<Lower>().llt().solve(B);
+ #ifndef EIGEN_DEFAULT_TO_ROW_MAJOR
+ // TODO make sure the API is properly documented about this fact
X = CholmodDecomposition<SparseMatrix<Scalar>, Lower>(m3).solve(B);
VERIFY(ref_X.isApprox(X,test_precision<Scalar>()) && "LLT: cholmod solve, multiple dense rhs");
X = CholmodDecomposition<SparseMatrix<Scalar>, Upper>(m3).solve(B);
VERIFY(ref_X.isApprox(X,test_precision<Scalar>()) && "LLT: cholmod solve, multiple dense rhs");
+ #endif
// with a sparse rhs