OPAL (Object Oriented Parallel Accelerator Library)  2021.1.99
OPAL
Classes | Macros
SequenceGen.h File Reference
#include "PETE/IpplExpressions.h"
#include "Utility/RNGAssignDefs.h"
Include dependency graph for SequenceGen.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  SequenceGen< GT >
 

Macros

#define RNG_OPERATOR_WITH_SCALAR(GEN, SCA, OP, APP)
 
#define RNG_OPERATOR(GEN, OP, APP)
 
#define RNG_BASIC_MATH(GEN)
 

Macro Definition Documentation

◆ RNG_BASIC_MATH

#define RNG_BASIC_MATH (   GEN)
Value:
\
RNG_OPERATOR(GEN,operator+,OpAdd) \
RNG_OPERATOR(GEN,operator-,OpSubtract) \
RNG_OPERATOR(GEN,operator*,OpMultipply) \
RNG_OPERATOR(GEN,operator/,OpDivide)

Definition at line 65 of file SequenceGen.h.

◆ RNG_OPERATOR

#define RNG_OPERATOR (   GEN,
  OP,
  APP 
)
Value:
\
RNG_OPERATOR_WITH_SCALAR(GEN,short,OP,APP) \
RNG_OPERATOR_WITH_SCALAR(GEN,int,OP,APP) \
RNG_OPERATOR_WITH_SCALAR(GEN,long,OP,APP) \
RNG_OPERATOR_WITH_SCALAR(GEN,float,OP,APP) \
RNG_OPERATOR_WITH_SCALAR(GEN,double,OP,APP) \
RNG_OPERATOR_WITH_SCALAR(GEN,std::complex<double>,OP,APP)

Definition at line 56 of file SequenceGen.h.

◆ RNG_OPERATOR_WITH_SCALAR

#define RNG_OPERATOR_WITH_SCALAR (   GEN,
  SCA,
  OP,
  APP 
)
Value:
\
OP(const GEN& lhs, SCA sca) \
{ \
return PETE_apply( APP(), lhs(), sca ); \
} \
\
OP(SCA sca, const GEN& rhs) \
{ \
return PETE_apply( APP(), sca, rhs() ); \
}
void PETE_apply(const OpPeriodic< T > &, T &a, const T &b)
Definition: BCond.hpp:353

Definition at line 42 of file SequenceGen.h.