Exponential functions¶
xtensor provides the following exponential functions for xexpressions:
Defined in xtensor/xmath.hpp
-
template<class
E>
autoxt::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.
- Return
an xfunction
- Parameters
e: an xexpression
-
template<class
E>
autoxt::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.
- Return
an xfunction
- Parameters
e: an xexpression
-
template<class
E>
autoxt::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.
- Return
an xfunction
- Parameters
e: an xexpression
-
template<class
E>
autoxt::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.
- Return
an xfunction
- Parameters
e: an xexpression
-
template<class
E>
autoxt::log2(E &&e) noexcept -> detail::xfunction_type_t<math::log2_fun, E>¶ Base 2 logarithm function.
Returns an xfunction for the element-wise base 2 logarithm of e.
- Return
an xfunction
- Parameters
e: an xexpression