aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/sparselu.cpp
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2013-02-22 14:45:42 +0100
committerGravatar Gael Guennebaud <g.gael@free.fr>2013-02-22 14:45:42 +0100
commite71bc79f2a9620f0c37a1af5668541d6028c5c9c (patch)
treecce5d59ed562ad64e8bfc20d0181f091862faa44 /test/sparselu.cpp
parentbd8c9c69e4b32384d161f097e769ece68b227cf4 (diff)
SparseLU does not accept row-major matrices for the destination.
Diffstat (limited to 'test/sparselu.cpp')
-rw-r--r--test/sparselu.cpp10
1 files changed, 10 insertions, 0 deletions
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 <http://www.gnu.org/licenses/>.
+
+
+// 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 <Eigen/SparseLU>
#include <unsupported/Eigen/SparseExtra>