mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-05-25 07:36:56 +08:00
Fix unused local typedef warning in matrix exponential
This commit is contained in:
parent
7294434099
commit
d6b23a2256
@ -284,12 +284,13 @@ template <typename MatrixType>
|
||||
struct matrix_exp_computeUV<MatrixType, long double> {
|
||||
template <typename ArgType>
|
||||
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
|
||||
matrix_exp_computeUV<MatrixType, double>::run(arg, U, V, squarings);
|
||||
|
||||
#else
|
||||
|
||||
using Scalar = typename traits<MatrixType>::Scalar;
|
||||
|
||||
using std::frexp;
|
||||
using std::pow;
|
||||
const long double l1norm = arg.cwiseAbs().colwise().sum().maxCoeff();
|
||||
|
Loading…
x
Reference in New Issue
Block a user