aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Cholesky
diff options
context:
space:
mode:
authorGravatar Jitse Niesen <jitse@maths.leeds.ac.uk>2011-06-24 13:41:23 +0100
committerGravatar Jitse Niesen <jitse@maths.leeds.ac.uk>2011-06-24 13:41:23 +0100
commit16db255333f890d7c8e95822d70871b491e91a92 (patch)
tree527176fae932bf34506712fac597d261352c54a9 /Eigen/src/Cholesky
parent9b52fe043270df989a23ebf82411e21af834b968 (diff)
Fix compilation of cholesky rank update test.
Diffstat (limited to 'Eigen/src/Cholesky')
-rw-r--r--Eigen/src/Cholesky/LLT.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/Eigen/src/Cholesky/LLT.h b/Eigen/src/Cholesky/LLT.h
index 33a5c4165..685f0b01e 100644
--- a/Eigen/src/Cholesky/LLT.h
+++ b/Eigen/src/Cholesky/LLT.h
@@ -264,12 +264,13 @@ template<> struct llt_inplace<Lower>
typedef typename MatrixType::ColXpr ColXpr;
typedef typename internal::remove_all<ColXpr>::type ColXprCleaned;
typedef typename ColXprCleaned::SegmentReturnType ColXprSegment;
- typedef typename VectorType::SegmentReturnType VecSegment;
+ typedef typename MatrixType::Scalar Scalar;
+ typedef Matrix<Scalar,Dynamic,1> TempVectorType;
+ typedef typename TempVectorType::SegmentReturnType TempVecSegment;
int n = mat.cols();
eigen_assert(mat.rows()==n && vec.size()==n);
- typedef typename MatrixType::Scalar Scalar;
- Matrix<Scalar,Dynamic,1> temp(vec);
+ TempVectorType temp(vec);
for(int i=0; i<n; ++i)
{
@@ -280,7 +281,7 @@ template<> struct llt_inplace<Lower>
if(rs>0)
{
ColXprSegment x(mat.col(i).tail(rs));
- VecSegment y(temp.tail(rs));
+ TempVecSegment y(temp.tail(rs));
apply_rotation_in_the_plane(x, y, g);
}
}