Power functions¶
-
template<class
B>
batch_type_t<B>xsimd::pow(const simd_base<B> &x, const simd_base<B> &y)¶ Computes the value of the batch
xraised to the powery.- Return
xraised to the powery.- Parameters
x: batch of floating point values.y: batch of floating point values.
-
template<class
X>
batch_type_t<X>xsimd::sqrt(const simd_base<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
B>
batch_type_t<B>xsimd::cbrt(const simd_base<B> &x)¶ Computes the cubic root of the batch
x.- Return
the cubic root of
x.- Parameters
x: batch of floating point values.
-
template<class
B>
batch_type_t<B>xsimd::hypot(const simd_base<B> &x, const simd_base<B> &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
xandy.- Parameters
x: batch of floating point values.y: batch of floating point values.