Replace assert with eigen_assert.

This commit is contained in:
Antonio Sánchez
2022-10-04 17:11:23 +00:00
committed by Rasmus Munk Larsen
parent 7d6a9925cc
commit e5794873cb
14 changed files with 65 additions and 65 deletions

View File

@@ -136,7 +136,7 @@ void matrix_log_compute_pade(MatrixType& result, const MatrixType& T, int degree
typedef typename NumTraits<typename MatrixType::Scalar>::Real RealScalar;
const int minPadeDegree = 3;
const int maxPadeDegree = 11;
assert(degree >= minPadeDegree && degree <= maxPadeDegree);
eigen_assert(degree >= minPadeDegree && degree <= maxPadeDegree);
// FIXME this creates float-conversion-warnings if these are enabled.
// Either manually convert each value, or disable the warning locally
const RealScalar nodes[][maxPadeDegree] = {