Fix unused local typedef warning in matrix exponential

This commit is contained in:
Tyler Veness 2025-04-29 19:54:15 +00:00 committed by Rasmus Munk Larsen
parent 7294434099
commit d6b23a2256

View File

@ -284,12 +284,13 @@ template <typename MatrixType>
struct matrix_exp_computeUV<MatrixType, long double> { struct matrix_exp_computeUV<MatrixType, long double> {
template <typename ArgType> template <typename ArgType>
static void run(const ArgType& arg, MatrixType& U, MatrixType& V, int& squarings) { static void run(const ArgType& arg, MatrixType& U, MatrixType& V, int& squarings) {
using Scalar = typename traits<MatrixType>::Scalar;
#if LDBL_MANT_DIG == 53 // double precision #if LDBL_MANT_DIG == 53 // double precision
matrix_exp_computeUV<MatrixType, double>::run(arg, U, V, squarings); matrix_exp_computeUV<MatrixType, double>::run(arg, U, V, squarings);
#else #else
using Scalar = typename traits<MatrixType>::Scalar;
using std::frexp; using std::frexp;
using std::pow; using std::pow;
const long double l1norm = arg.cwiseAbs().colwise().sum().maxCoeff(); const long double l1norm = arg.cwiseAbs().colwise().sum().maxCoeff();