diff options
author | 2011-09-03 04:58:06 +0100 | |
---|---|---|
committer | 2011-09-03 04:58:06 +0100 | |
commit | a2feb6f3c7a7c5a88e187a21bbb85f3d6ae4f65b (patch) | |
tree | a883bf713b5d2084c8b59636d5a62ac57b465767 /unsupported | |
parent | dd598ef8ceaa80862c246f7b644b27431af03e1a (diff) |
Add defensive assert to MatrixExponential,
Diffstat (limited to 'unsupported')
-rw-r--r-- | unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h b/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h index ee8f042de..7fd36eca6 100644 --- a/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h +++ b/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h @@ -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 } |