diff options
author | Gael Guennebaud <g.gael@free.fr> | 2016-06-24 23:21:35 +0200 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2016-06-24 23:21:35 +0200 |
commit | cfff370549e3b0e07b04796376d53cf3865fb660 (patch) | |
tree | 0739bde7ba559ecab271f07e692d001db945ac7d /unsupported/Eigen/src/AutoDiff | |
parent | c50c73cae2d84a759b23778d3c00dd11d1a34a2a (diff) |
Fix hyperbolic functions for autodiff.
Diffstat (limited to 'unsupported/Eigen/src/AutoDiff')
-rwxr-xr-x | unsupported/Eigen/src/AutoDiff/AutoDiffScalar.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/unsupported/Eigen/src/AutoDiff/AutoDiffScalar.h b/unsupported/Eigen/src/AutoDiff/AutoDiffScalar.h index 071899382..76bf2d96c 100755 --- a/unsupported/Eigen/src/AutoDiff/AutoDiffScalar.h +++ b/unsupported/Eigen/src/AutoDiff/AutoDiffScalar.h @@ -657,17 +657,17 @@ EIGEN_AUTODIFF_DECLARE_GLOBAL_UNARY(acos, EIGEN_AUTODIFF_DECLARE_GLOBAL_UNARY(tanh, using std::cosh; using std::tanh; - return ReturnType(tanh(x.value()),x.derivatives() * (Scalar(1)/numext::abs2(cosh(x.value()))));) + return Eigen::MakeAutoDiffScalar(tanh(x.value()),x.derivatives() * (Scalar(1)/numext::abs2(cosh(x.value()))));) EIGEN_AUTODIFF_DECLARE_GLOBAL_UNARY(sinh, using std::sinh; using std::cosh; - return ReturnType(sinh(x.value()),x.derivatives() * cosh(x.value()));) + return Eigen::MakeAutoDiffScalar(sinh(x.value()),x.derivatives() * cosh(x.value()));) EIGEN_AUTODIFF_DECLARE_GLOBAL_UNARY(cosh, using std::sinh; using std::cosh; - return ReturnType(cosh(x.value()),x.derivatives() * sinh(x.value()));) + return Eigen::MakeAutoDiffScalar(cosh(x.value()),x.derivatives() * sinh(x.value()));) #undef EIGEN_AUTODIFF_DECLARE_GLOBAL_UNARY |