Classification functions

template<class B>
simd_batch_traits<B>::batch_bool_type xsimd::isfinite(const simd_base<B> &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 B>
simd_batch_traits<B>::batch_bool_type xsimd::isinf(const simd_base<B> &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_base<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.