From 96213335451c821f1b969ffbce5b6e73e5e55ca3 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Thu, 20 Feb 2014 15:24:21 +0100 Subject: [PATCH] Fix dimension of Solve expression --- Eigen/src/Core/Solve.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Eigen/src/Core/Solve.h b/Eigen/src/Core/Solve.h index cab0e916e..c28789968 100644 --- a/Eigen/src/Core/Solve.h +++ b/Eigen/src/Core/Solve.h @@ -69,7 +69,7 @@ public: : m_dec(dec), m_rhs(rhs) {} - EIGEN_DEVICE_FUNC Index rows() const { return m_dec.rows(); } + EIGEN_DEVICE_FUNC Index rows() const { return m_dec.cols(); } EIGEN_DEVICE_FUNC Index cols() const { return m_rhs.cols(); } EIGEN_DEVICE_FUNC const Decomposition& dec() const { return m_dec; }