mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-12 11:49:02 +08:00
Fix compilation of cholesky rank update test.
This commit is contained in:
parent
9b52fe0432
commit
16db255333
@ -264,12 +264,13 @@ template<> struct llt_inplace<Lower>
|
|||||||
typedef typename MatrixType::ColXpr ColXpr;
|
typedef typename MatrixType::ColXpr ColXpr;
|
||||||
typedef typename internal::remove_all<ColXpr>::type ColXprCleaned;
|
typedef typename internal::remove_all<ColXpr>::type ColXprCleaned;
|
||||||
typedef typename ColXprCleaned::SegmentReturnType ColXprSegment;
|
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();
|
int n = mat.cols();
|
||||||
eigen_assert(mat.rows()==n && vec.size()==n);
|
eigen_assert(mat.rows()==n && vec.size()==n);
|
||||||
typedef typename MatrixType::Scalar Scalar;
|
TempVectorType temp(vec);
|
||||||
Matrix<Scalar,Dynamic,1> temp(vec);
|
|
||||||
|
|
||||||
for(int i=0; i<n; ++i)
|
for(int i=0; i<n; ++i)
|
||||||
{
|
{
|
||||||
@ -280,7 +281,7 @@ template<> struct llt_inplace<Lower>
|
|||||||
if(rs>0)
|
if(rs>0)
|
||||||
{
|
{
|
||||||
ColXprSegment x(mat.col(i).tail(rs));
|
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);
|
apply_rotation_in_the_plane(x, y, g);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user