From e71bc79f2a9620f0c37a1af5668541d6028c5c9c Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Fri, 22 Feb 2013 14:45:42 +0100 Subject: SparseLU does not accept row-major matrices for the destination. --- test/sparselu.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'test/sparselu.cpp') diff --git a/test/sparselu.cpp b/test/sparselu.cpp index 5b55d51e2..6a9eac065 100644 --- a/test/sparselu.cpp +++ b/test/sparselu.cpp @@ -21,6 +21,16 @@ // You should have received a copy of the GNU Lesser General Public // License and a copy of the GNU General Public License along with // Eigen. If not, see . + + +// SparseLU solve does not accept column major matrices for the destination. +// However, as expected, the generic check_sparse_square_solving routines produces row-major +// rhs and destination matrices when compiled with EIGEN_DEFAULT_TO_ROW_MAJOR +// +#ifdef EIGEN_DEFAULT_TO_ROW_MAJOR +#undef EIGEN_DEFAULT_TO_ROW_MAJOR +#endif + #include "sparse_solver.h" #include #include -- cgit v1.2.3