Classification functions

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

Determines if the scalars in the given batch x are finite values, i.e.

they are different from infinite or NaN.

Return
a batch of booleans.
Parameters
  • x: batch of floating point values.

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

Determines if the scalars in the given batch x are positive or negative infinity.

Return
a batch of booleans.
Parameters
  • x: batch of floating point values.

template <class X>
simd_batch_traits<X>::batch_bool_type xsimd::isnan(const simd_batch<X> &x)

Determines if the scalars in the given batch x are NaN values.

Return
a batch of booleans.
Parameters
  • x: batch of floating point values.