diff options
author | Miao Wang <miaowang@google.com> | 2019-08-27 16:41:59 -0700 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2019-08-27 16:41:59 -0700 |
commit | 5fe1cea7d658b1ea7ca7be071194904cb0810cd8 (patch) | |
tree | d95a7e12cd2ef4e26230179b8e14002df2a5c6f1 | |
parent | cf47824652b817dd4f12e81e4e0ba33225e46777 (diff) | |
parent | b29d97077aac56854e899798deabd3c5b8eb285d (diff) | |
download | eigen-ndk-sysroot-r21.tar.gz |
Merge "Update Eigen to have LogisticReturnType for ArrayCwiseUnaryOp"ndk-sysroot-r21
am: b29d97077a
Change-Id: I1eab5a0f71b83408932afe2e1f64105fff2bd184
-rw-r--r-- | Eigen/src/plugins/ArrayCwiseUnaryOps.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Eigen/src/plugins/ArrayCwiseUnaryOps.h b/Eigen/src/plugins/ArrayCwiseUnaryOps.h index ebaa3f192..6590bea1d 100644 --- a/Eigen/src/plugins/ArrayCwiseUnaryOps.h +++ b/Eigen/src/plugins/ArrayCwiseUnaryOps.h @@ -20,6 +20,7 @@ typedef CwiseUnaryOp<internal::scalar_acos_op<Scalar>, const Derived> AcosReturn typedef CwiseUnaryOp<internal::scalar_asin_op<Scalar>, const Derived> AsinReturnType; typedef CwiseUnaryOp<internal::scalar_atan_op<Scalar>, const Derived> AtanReturnType; typedef CwiseUnaryOp<internal::scalar_tanh_op<Scalar>, const Derived> TanhReturnType; +typedef CwiseUnaryOp<internal::scalar_logistic_op<Scalar>, const Derived> LogisticReturnType; typedef CwiseUnaryOp<internal::scalar_sinh_op<Scalar>, const Derived> SinhReturnType; typedef CwiseUnaryOp<internal::scalar_cosh_op<Scalar>, const Derived> CoshReturnType; typedef CwiseUnaryOp<internal::scalar_square_op<Scalar>, const Derived> SquareReturnType; @@ -320,6 +321,15 @@ cosh() const return CoshReturnType(derived()); } +/** \returns an expression of the coefficient-wise logistic of *this. + */ +EIGEN_DEVICE_FUNC +inline const LogisticReturnType +logistic() const +{ + return LogisticReturnType(derived()); +} + /** \returns an expression of the coefficient-wise inverse of *this. * * Example: \include Cwise_inverse.cpp |