mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-05-25 15:46: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> {
|
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();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user