Fix build error in matrixfunctions on MSVC

This commit is contained in:
Desire NUENTSA 2012-10-30 11:30:37 +01:00
parent b3254c9af5
commit f7e203fb0c

View File

@ -134,7 +134,7 @@ void MatrixPower<MatrixType>::compute(const Derived& b, ResultType& res, RealSca
}
template<typename MatrixType>
typename MatrixPower<MatrixType>::Base::RealScalar MatrixPower<MatrixType>::modfAndInit(RealScalar x, RealScalar* intpart)
typename MatrixPower<MatrixType>::RealScalar MatrixPower<MatrixType>::modfAndInit(RealScalar x, RealScalar* intpart)
{
*intpart = std::floor(x);
RealScalar res = x - *intpart;