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.

Warning

doxygenfunction: Unable to resolve multiple matches for function “exp10” with arguments () in doxygen xml output for project “xsimd” from directory: ../xml. Potential matches:

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

Warning

doxygenfunction: Unable to resolve multiple matches for function “expm1” with arguments () in doxygen xml output for project “xsimd” from directory: ../xml. Potential matches:

- template <class T, std::size_t *N*>
  batch<T, N> xsimd::expm1(const batch<T, N>&)
- template <class T>
  std::complex<T> xsimd::expm1(const std::complex<T>&)
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.

Warning

doxygenfunction: Unable to resolve multiple matches for function “log2” with arguments () in doxygen xml output for project “xsimd” from directory: ../xml. Potential matches:

- template <class T, std::size_t *N*>
  batch<T, N> xsimd::log2(const batch<T, N>&)
- template <class T>
  std::complex<T> xsimd::log2(const std::complex<T>&)
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.

Warning

doxygenfunction: Unable to resolve multiple matches for function “log1p” with arguments () in doxygen xml output for project “xsimd” from directory: ../xml. Potential matches:

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