Exponential functions

template <class T, std::size_t N>
batch<T, N> xsimd::exp(const batch<T, N> &x)

Computes the natural exponential of the batch x.

Return
the natural exponential of x.
Parameters
  • x: batch of floating point values.

template <class T, std::size_t N>
batch<T, N> xsimd::exp2(const batch<T, N> &x)

Computes the base 2 exponential of the batch x.

Return
the base 2 exponential of x.
Parameters
  • x: batch of floating point values.

template <class T, std::size_t N>
batch<T, N> xsimd::exp10(const batch<T, N> &x)

Computes the base 10 exponential of the batch x.

Return
the base 10 exponential of x.
Parameters
  • x: batch of floating point values.

template <class T, std::size_t N>
batch<T, N> xsimd::expm1(const batch<T, N> &x)

Computes the natural exponential of the batch x, minus one.

Return
the natural exponential of x, minus one.
Parameters
  • x: batch of floating point values.

template <class T, std::size_t N>
batch<T, N> xsimd::log(const batch<T, N> &x)

Computes the natural logarithm of the batch x.

Return
the natural logarithm of x.
Parameters
  • x: batch of floating point values.

template <class T, std::size_t N>
batch<T, N> xsimd::log2(const batch<T, N> &x)

Computes the base 2 logarithm of the batch x.

Return
the base 2 logarithm of x.
Parameters
  • x: batch of floating point values.

template <class T, std::size_t N>
batch<T, N> xsimd::log10(const batch<T, N> &x)

Computes the base 10 logarithm of the batch x.

Return
the base 10 logarithm of x.
Parameters
  • x: batch of floating point values.

template <class T, std::size_t N>
batch<T, N> xsimd::log1p(const batch<T, N> &x)

Computes the natural logarithm of one plus the batch x.

Return
the natural logarithm of one plus x.
Parameters
  • x: batch of floating point values.