Power functions¶
Warning
doxygenfunction: Unable to resolve multiple matches for function “pow” 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::pow(const batch<T, N>&, const batch<T, N>&)
- template <class T0, class T1>
auto xsimd::pow(const T0&, const T1&)
- template <class T0, class T1>
auto xsimd::pow(const T0&, const std::complex<T1>&)
- template <class T0, class T1>
std::enable_if<!std::is_integral<T1>::value, std::complex<T0>>::type xsimd::pow(const std::complex<T0>&, const T1&)
- template <class T0, class T1>
std::enable_if<std::is_integral<T1>::value, T0>::type xsimd::pow(const T0&, const T1&)
- template <class T0, class T1>
std::enable_if<std::is_integral<T1>::value, std::complex<T0>>::type xsimd::pow(const std::complex<T0>&, const T1&)
- template <class T0, std::size_t *N*, class T1>
std::enable_if<std::is_integral<T1>::value, batch<T0, N>>::type xsimd::pow(const batch<T0, N>&, const T1&)
-
template <class X>
Xxsimd
::
sqrt
(const simd_batch<X> &rhs) Computes the square root of the batch
rhs
.- Return
- the square root of
rhs
. - Parameters
rhs
: batch of floating point values.
-
template <class T, std::size_t N>
batch<T, N>xsimd
::
cbrt
(const batch<T, N> &x)¶ Computes the cubic root of the batch
x
.- Return
- the cubic root of
x
. - Parameters
x
: batch of floating point values.
-
template <class T, std::size_t N>
batch<T, N>xsimd
::
hypot
(const batch<T, N> &x, const batch<T, N> &y)¶ Computes the square root of the sum of the squares of the batches
x
, andy
.- Return
- the square root of the sum of the squares of
x
andy
. - Parameters
x
: batch of floating point values.y
: batch of floating point values.