From d6b23a2256b0c5d77bdc9988b8a82a9e79b5c5af Mon Sep 17 00:00:00 2001 From: Tyler Veness Date: Tue, 29 Apr 2025 19:54:15 +0000 Subject: [PATCH] Fix unused local typedef warning in matrix exponential --- unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h b/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h index a28aa9695..f4e0428ef 100644 --- a/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h +++ b/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h @@ -284,12 +284,13 @@ template struct matrix_exp_computeUV { template static void run(const ArgType& arg, MatrixType& U, MatrixType& V, int& squarings) { - using Scalar = typename traits::Scalar; #if LDBL_MANT_DIG == 53 // double precision matrix_exp_computeUV::run(arg, U, V, squarings); #else + using Scalar = typename traits::Scalar; + using std::frexp; using std::pow; const long double l1norm = arg.cwiseAbs().colwise().sum().maxCoeff();