aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Householder
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2016-05-26 17:39:42 +0200
committerGravatar Gael Guennebaud <g.gael@free.fr>2016-05-26 17:39:42 +0200
commit30d97c03ceb6efb55440e2bf567f5b25d9b9bd50 (patch)
tree0c6e0c758293442127f66f159dda20e85777e3c9 /Eigen/src/Householder
parente08f54e9eb7ff47ccbfdd6d50c0992019eb11171 (diff)
Defer the allocation of the working space:
- it is not always needed, - and this fixes a long-to-float conversion warning
Diffstat (limited to 'Eigen/src/Householder')
-rw-r--r--Eigen/src/Householder/HouseholderSequence.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Eigen/src/Householder/HouseholderSequence.h b/Eigen/src/Householder/HouseholderSequence.h
index e9f3ebf88..b7f97af1a 100644
--- a/Eigen/src/Householder/HouseholderSequence.h
+++ b/Eigen/src/Householder/HouseholderSequence.h
@@ -304,7 +304,7 @@ template<typename VectorsType, typename CoeffsType, int Side> class HouseholderS
/** \internal */
template<typename Dest> inline void applyThisOnTheLeft(Dest& dst) const
{
- Matrix<Scalar,1,Dest::ColsAtCompileTime,RowMajor,1,Dest::MaxColsAtCompileTime> workspace(dst.cols());
+ Matrix<Scalar,1,Dest::ColsAtCompileTime,RowMajor,1,Dest::MaxColsAtCompileTime> workspace;
applyThisOnTheLeft(dst, workspace);
}