diff --git a/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h b/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h index 14a8aef58..68456f579 100644 --- a/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h +++ b/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h @@ -258,7 +258,7 @@ struct matrix_exp_computeUV { #if LDBL_MANT_DIG == 53 // double precision - matrix_exp_computeUV::run(arg, U, V, squarings); + matrix_exp_computeUV::run(arg.cast(), U.cast(), squarings); #else