sigmoid -> logistic

This commit is contained in:
Rasmus Munk Larsen
2018-08-13 11:14:50 -07:00
parent fa68342ef8
commit d6e283ba96
4 changed files with 15 additions and 15 deletions

View File

@@ -21,7 +21,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_sigmoid_op<Scalar>, const Derived> SigmoidReturnType;
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;
@@ -336,13 +336,13 @@ cosh() const
return CoshReturnType(derived());
}
/** \returns an expression of the coefficient-wise sigmoid of *this.
/** \returns an expression of the coefficient-wise logistic of *this.
*/
EIGEN_DEVICE_FUNC
inline const SigmoidReturnType
sigmoid() const
inline const LogisticReturnType
logistic() const
{
return SigmoidReturnType(derived());
return LogisticReturnType(derived());
}
/** \returns an expression of the coefficient-wise inverse of *this.