Workaround a MSVC 2013 compilation issue with MatrixBase(Index,int)

This commit is contained in:
Gael Guennebaud 2018-05-22 18:51:35 +02:00
parent 725bd92903
commit 36e413a534

View File

@ -747,8 +747,9 @@ struct SparseLUMatrixUReturnType : internal::no_assignment_operator
}
else
{
// FIXME: the following lines should use Block expressions and not Map!
Map<const Matrix<Scalar,Dynamic,Dynamic, ColMajor>, 0, OuterStride<> > A( &(m_mapL.valuePtr()[luptr]), nsupc, nsupc, OuterStride<>(lda) );
Map< Matrix<Scalar,Dynamic,Dest::ColsAtCompileTime, ColMajor>, 0, OuterStride<> > U (&(X(fsupc,0)), nsupc, nrhs, OuterStride<>(n) );
Map< Matrix<Scalar,Dynamic,Dest::ColsAtCompileTime, ColMajor>, 0, OuterStride<> > U (&(X.coeffRef(fsupc,0)), nsupc, nrhs, OuterStride<>(n) );
U = A.template triangularView<Upper>().solve(U);
}