From 551d20a824aa96d1c75d5af57a767ce27acd3077 Mon Sep 17 00:00:00 2001 From: Desire NUENTSA Date: Thu, 26 Sep 2013 15:00:22 +0200 Subject: [PATCH] Fix SPQR Solve() when assigning to a Map object (grafted from 54e576c88af67aa2c8a66d95a104a4ffc5fd1985 ) --- Eigen/src/SPQRSupport/SuiteSparseQRSupport.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Eigen/src/SPQRSupport/SuiteSparseQRSupport.h b/Eigen/src/SPQRSupport/SuiteSparseQRSupport.h index e1a320446..a2cc2a9e2 100644 --- a/Eigen/src/SPQRSupport/SuiteSparseQRSupport.h +++ b/Eigen/src/SPQRSupport/SuiteSparseQRSupport.h @@ -147,7 +147,7 @@ class SPQR eigen_assert(b.cols()==1 && "This method is for vectors only"); //Compute Q^T * b - Dest y; + typename Dest::PlainObject y; y = matrixQ().transpose() * b; // Solves with the triangular matrix R Index rk = this->rank();