Exponential functions
xtensor provides the following exponential functions for xexpressions:
Defined in xtensor/core/xmath.hpp
- group Exponential functions
Functions
-
template<class E>
inline auto exp(E &&e) noexcept -> detail::xfunction_type_t<math::exp_fun, E> Natural exponential function.
Returns an xfunction for the element-wise natural exponential of e.
- Parameters:
e – an xexpression
- Returns:
an xfunction
-
template<class E>
inline auto exp2(E &&e) noexcept -> detail::xfunction_type_t<math::exp2_fun, E> Base 2 exponential function.
Returns an xfunction for the element-wise base 2 exponential of e.
- Parameters:
e – an xexpression
- Returns:
an xfunction
-
template<class E>
inline auto expm1(E &&e) noexcept -> detail::xfunction_type_t<math::expm1_fun, E> Natural exponential minus one function.
Returns an xfunction for the element-wise natural exponential of e, minus 1.
- Parameters:
e – an xexpression
- Returns:
an xfunction
-
template<class E>
inline auto log(E &&e) noexcept -> detail::xfunction_type_t<math::log_fun, E> Natural logarithm function.
Returns an xfunction for the element-wise natural logarithm of e.
- Parameters:
e – an xexpression
- Returns:
an xfunction
-
template<class E>
inline auto log10(E &&e) noexcept -> detail::xfunction_type_t<math::log10_fun, E> Base 10 logarithm function.
Returns an xfunction for the element-wise base 10 logarithm of e.
- Parameters:
e – an xexpression
- Returns:
an xfunction
-
template<class E>