Classification functions

template<class B>
inline 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.

Parameters

x – batch of floating point values.

Returns

a batch of booleans.

template<class B>
inline 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.

Parameters

x – batch of floating point values.

Returns

a batch of booleans.

template<class X>
inline 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.

Parameters

x – batch of floating point values.

Returns

a batch of booleans.