Error and gamma functions¶
xtensor provides the following error and gamma functions for xexpressions:
Defined in xtensor/xmath.hpp
-
template<class E>
inline auto xt::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 xt::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