Exponential functions¶
-
template<class B>
inline batch_type_t<B> xsimd::exp(const simd_base<B> &x)¶ Computes the natural exponential of the batch
x
.- Parameters
x – batch of floating point values.
- Returns
the natural exponential of
x
.
-
template<class B>
inline batch_type_t<B> xsimd::exp2(const simd_base<B> &x)¶ Computes the base 2 exponential of the batch
x
.- Parameters
x – batch of floating point values.
- Returns
the base 2 exponential of
x
.
-
template<class B>
inline batch_type_t<B> xsimd::exp10(const simd_base<B> &x)¶ Computes the base 10 exponential of the batch
x
.- Parameters
x – batch of floating point values.
- Returns
the base 10 exponential of
x
.
-
template<class B>
inline batch_type_t<B> xsimd::expm1(const simd_base<B> &x)¶ Computes the natural exponential of the batch
x
, minus one.- Parameters
x – batch of floating point values.
- Returns
the natural exponential of
x
, minus one.
-
template<class B>
inline batch_type_t<B> xsimd::log(const simd_base<B> &x)¶ Computes the natural logarithm of the batch
x
.- Parameters
x – batch of floating point values.
- Returns
the natural logarithm of
x
.
-
template<class B>
inline batch_type_t<B> xsimd::log2(const simd_base<B> &x)¶ Computes the base 2 logarithm of the batch
x
.- Parameters
x – batch of floating point values.
- Returns
the base 2 logarithm of
x
.