Add defensive assert to MatrixExponential,

This commit is contained in:
Jitse Niesen 2011-09-03 04:58:06 +01:00
parent dd598ef8ce
commit a2feb6f3c7

View File

@ -395,6 +395,9 @@ void MatrixExponential<MatrixType>::computeUV(long double)
MatrixType A = m_M / pow(Scalar(2), m_squarings);
pade17(A);
}
#else
// this case should be handled in compute()
eigen_assert(false && "Bug in MatrixExponential");
#endif // LDBL_MANT_DIG
}