Error and gamma functions
xtensor provides the following error and gamma functions for xexpressions:
Defined in xtensor/core/xmath.hpp
- group Error and gamma functions
Functions
-
template<class E>
inline auto erf(E &&e) noexcept -> detail::xfunction_type_t<math::erf_fun, E> Error function.
Returns an xfunction for the element-wise error function of e.
- Parameters:
e – an xexpression
- Returns:
an xfunction
-
template<class E>
inline auto erfc(E &&e) noexcept -> detail::xfunction_type_t<math::erfc_fun, E> Complementary error function.
Returns an xfunction for the element-wise complementary error function of e, whithout loss of precision for large argument.
- Parameters:
e – an xexpression
- Returns:
an xfunction
-
template<class E>