Comparison operators¶
-
template<class
T
, classA
>
autoxsimd
::
eq
(batch<T, A> const &x, batch<T, A> const &y)¶ Element-wise equality comparison of batches
x
andy
.- Return
- a boolean batch.
- Parameters
x
: batch of scalarsy
: batch of scalars
-
template<class
T
, classA
>
batch_bool<T, A>xsimd
::
ge
(batch<T, A> const &x, batch<T, A> const &y)¶ Element-wise greater or equal comparison of batches
x
andy
.- Return
- a boolean batch.
- Template Parameters
X
: the actual type of batch.
- Parameters
x
: batch involved in the comparison.y
: batch involved in the comparison.
-
template<class
T
, classA
>
batch_bool<T, A>xsimd
::
gt
(batch<T, A> const &x, batch<T, A> const &y)¶ Element-wise greater than comparison of batches
x
andy
.- Return
- a boolean batch.
- Template Parameters
X
: the actual type of batch.
- Parameters
x
: batch involved in the comparison.y
: batch involved in the comparison.
-
template<class
T
, classA
>
batch_bool<T, A>xsimd
::
is_even
(batch<T, A> const &x)¶ Determines if the scalars in the given batch
x
represent an even integer value.- Return
- a batch of booleans.
- Parameters
x
: batch of floating point values.
-
template<class
T
, classA
>
batch_bool<T, A>xsimd
::
is_flint
(batch<T, A> const &x)¶ Determines if the floating-point scalars in the given batch
x
represent integer value.- Return
- a batch of booleans.
- Parameters
x
: batch of floating point values.
-
template<class
T
, classA
>
batch_bool<T, A>xsimd
::
is_odd
(batch<T, A> const &x)¶ Determines if the scalars in the given batch
x
represent an odd integer value.- Return
- a batch of booleans.
- Parameters
x
: batch of floating point values.
-
template<class
T
, classA
>
batch_bool<T, A>xsimd
::
isinf
(batch<T, A> const &x) Determines if the scalars in the given batch
x
are inf values.- Return
- a batch of booleans.
- Parameters
x
: batch of floating point values.
-
template<class
T
, classA
>
batch_bool<T, A>xsimd
::
isfinite
(batch<T, A> const &x) Determines if the scalars in the given batch
x
are finite values.- Return
- a batch of booleans.
- Parameters
x
: batch of floating point values.
-
template<class
T
, classA
>
batch<T, A>::batch_bool_typexsimd
::
isnan
(batch<T, A> const &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.
-
template<class
T
, classA
>
batch_bool<T, A>xsimd
::
le
(batch<T, A> const &x, batch<T, A> const &y)¶ Element-wise lesser or equal to comparison of batches
x
andy
.- Return
- a boolean batch.
- Parameters
x
: batch involved in the comparison.y
: batch involved in the comparison.