mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-09-25 15:53:19 +08:00
Add defensive assert to MatrixExponential,
This commit is contained in:
parent
dd598ef8ce
commit
a2feb6f3c7
@ -395,6 +395,9 @@ void MatrixExponential<MatrixType>::computeUV(long double)
|
|||||||
MatrixType A = m_M / pow(Scalar(2), m_squarings);
|
MatrixType A = m_M / pow(Scalar(2), m_squarings);
|
||||||
pade17(A);
|
pade17(A);
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
// this case should be handled in compute()
|
||||||
|
eigen_assert(false && "Bug in MatrixExponential");
|
||||||
#endif // LDBL_MANT_DIG
|
#endif // LDBL_MANT_DIG
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user