Error and gamma functions

template<class B>
inline batch_type_t<B> xsimd::erf(const simd_base<B> &x)

Computes the error function of the batch x.

Parameters

x – batch of floating point values.

Returns

the error function of x.

template<class B>
inline batch_type_t<B> xsimd::erfc(const simd_base<B> &x)

Computes the complementary error function of the batch x.

Parameters

x – batch of floating point values.

Returns

the error function of x.

template<class B>
inline batch_type_t<B> xsimd::tgamma(const simd_base<B> &x)

Computes the gamma function of the batch x.

Parameters

x – batch of floating point values.

Returns

the gamma function of x.

template<class B>
inline batch_type_t<B> xsimd::lgamma(const simd_base<B> &x)

Computes the natural logarithm of the gamma function of the batch x.

Parameters

x – batch of floating point values.

Returns

the natural logarithm of the gamma function of x.