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 have finite values, i.e.

theyr 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 T, std::size_t N>
batch_bool<T, 4> xsimd::isnan(const batch<T, N> &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.