Grid 0.7.0
Lattice_comparison_utils.h File Reference

Go to the source code of this file.

Data Structures

class  veq< lobj, robj >
class  vne< lobj, robj >
class  vlt< lobj, robj >
class  vle< lobj, robj >
class  vgt< lobj, robj >
class  vge< lobj, robj >
class  seq< lobj, robj >
class  sne< lobj, robj >
class  slt< lobj, robj >
class  sle< lobj, robj >
class  sgt< lobj, robj >
class  sge< lobj, robj >

Macros

#define DECLARE_RELATIONAL_EQ(op, functor)
#define DECLARE_RELATIONAL(op, functor)

Functions

 NAMESPACE_BEGIN (Grid)
template<class sfunctor, class vsimd, IfNotComplex< vsimd > = 0>
accelerator_inline vInteger Comparison (sfunctor sop, const vsimd &lhs, const vsimd &rhs)
template<class sfunctor, class vsimd, IfNotComplex< vsimd > = 0>
accelerator_inline vInteger Comparison (sfunctor sop, const vsimd &lhs, const typename vsimd::scalar_type &rhs)
template<class sfunctor, class vsimd, IfNotComplex< vsimd > = 0>
accelerator_inline vInteger Comparison (sfunctor sop, const typename vsimd::scalar_type &lhs, const vsimd &rhs)
 DECLARE_RELATIONAL (<, slt)
 DECLARE_RELATIONAL (<=, sle)
 DECLARE_RELATIONAL (>, sgt)
 DECLARE_RELATIONAL (>=, sge)
 DECLARE_RELATIONAL_EQ (==, seq)
 DECLARE_RELATIONAL (!=, sne)
 NAMESPACE_END (Grid)

Macro Definition Documentation

◆ DECLARE_RELATIONAL_EQ

#define DECLARE_RELATIONAL_EQ ( op,
functor )

Definition at line 182 of file Lattice_comparison_utils.h.

◆ DECLARE_RELATIONAL

#define DECLARE_RELATIONAL ( op,
functor )

Definition at line 212 of file Lattice_comparison_utils.h.

Function Documentation

◆ NAMESPACE_BEGIN()

NAMESPACE_BEGIN ( Grid )

◆ Comparison() [1/3]

template<class sfunctor, class vsimd, IfNotComplex< vsimd > = 0>
accelerator_inline vInteger Comparison ( sfunctor sop,
const vsimd & lhs,
const vsimd & rhs )

Definition at line 136 of file Lattice_comparison_utils.h.

References accelerator_inline, extract(), and merge().

◆ Comparison() [2/3]

template<class sfunctor, class vsimd, IfNotComplex< vsimd > = 0>
accelerator_inline vInteger Comparison ( sfunctor sop,
const vsimd & lhs,
const typename vsimd::scalar_type & rhs )

Definition at line 153 of file Lattice_comparison_utils.h.

References accelerator_inline, extract(), and merge().

◆ Comparison() [3/3]

template<class sfunctor, class vsimd, IfNotComplex< vsimd > = 0>
accelerator_inline vInteger Comparison ( sfunctor sop,
const typename vsimd::scalar_type & lhs,
const vsimd & rhs )

Definition at line 168 of file Lattice_comparison_utils.h.

References accelerator_inline, extract(), and merge().

◆ DECLARE_RELATIONAL() [1/5]

DECLARE_RELATIONAL ( )

◆ DECLARE_RELATIONAL() [2/5]

DECLARE_RELATIONAL ( <= ,
sle  )

◆ DECLARE_RELATIONAL() [3/5]

DECLARE_RELATIONAL ( sgt )

◆ DECLARE_RELATIONAL() [4/5]

DECLARE_RELATIONAL ( >= ,
sge  )

◆ DECLARE_RELATIONAL_EQ()

DECLARE_RELATIONAL_EQ ( seq )

◆ DECLARE_RELATIONAL() [5/5]

DECLARE_RELATIONAL ( ! ,
sne  )

◆ NAMESPACE_END()

NAMESPACE_END ( Grid )