diff options
author | Rasmus Munk Larsen <rmlarsen@google.com> | 2018-08-13 11:14:50 -0700 |
---|---|---|
committer | Rasmus Munk Larsen <rmlarsen@google.com> | 2018-08-13 11:14:50 -0700 |
commit | d6e283ba9650faed0c48c36f475d5dd77b916427 (patch) | |
tree | f41d26e36f1fd7806ee53ed5e51995d4611d8b3a /Eigen/src/Core/functors | |
parent | fa68342ef80d72f52b340851a5ab18003259b2ed (diff) |
sigmoid -> logistic
Diffstat (limited to 'Eigen/src/Core/functors')
-rw-r--r-- | Eigen/src/Core/functors/UnaryFunctors.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Eigen/src/Core/functors/UnaryFunctors.h b/Eigen/src/Core/functors/UnaryFunctors.h index c350cdf98..c1cc2ab3b 100644 --- a/Eigen/src/Core/functors/UnaryFunctors.h +++ b/Eigen/src/Core/functors/UnaryFunctors.h @@ -824,12 +824,12 @@ struct functor_traits<scalar_sign_op<Scalar> > }; /** \internal - * \brief Template functor to compute the sigmoid of a scalar - * \sa class CwiseUnaryOp, ArrayBase::sigmoid() + * \brief Template functor to compute the logistic function of a scalar + * \sa class CwiseUnaryOp, ArrayBase::logistic() */ template <typename T> -struct scalar_sigmoid_op { - EIGEN_EMPTY_STRUCT_CTOR(scalar_sigmoid_op) +struct scalar_logistic_op { + EIGEN_EMPTY_STRUCT_CTOR(scalar_logistic_op) EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE T operator()(const T& x) const { const T one = T(1); return one / (one + numext::exp(-x)); @@ -842,7 +842,7 @@ struct scalar_sigmoid_op { } }; template <typename T> -struct functor_traits<scalar_sigmoid_op<T> > { +struct functor_traits<scalar_logistic_op<T> > { enum { Cost = NumTraits<T>::AddCost * 2 + NumTraits<T>::MulCost * 6, PacketAccess = packet_traits<T>::HasAdd && packet_traits<T>::HasDiv && |