Grid 0.7.0
Tensor_unary.h File Reference

Go to the source code of this file.

Macros

#define UNARY(func)
#define BINARY_RSCALAR(func, scal)

Functions

 NAMESPACE_BEGIN (Grid)
 UNARY (sqrt)
 UNARY (sin)
 UNARY (cos)
 UNARY (asin)
 UNARY (acos)
 UNARY (log)
 UNARY (exp)
 UNARY (abs)
 UNARY (Not)
template<class obj>
accelerator_inline auto toReal (const iScalar< obj > &z) -> typename iScalar< obj >::Realified
template<class obj, int N>
accelerator_inline auto toReal (const iVector< obj, N > &z) -> typename iVector< obj, N >::Realified
template<class obj, int N>
accelerator_inline auto toReal (const iMatrix< obj, N > &z) -> typename iMatrix< obj, N >::Realified
template<class obj>
accelerator_inline auto toComplex (const iScalar< obj > &z) -> typename iScalar< obj >::Complexified
template<class obj, int N>
accelerator_inline auto toComplex (const iVector< obj, N > &z) -> typename iVector< obj, N >::Complexified
template<class obj, int N>
accelerator_inline auto toComplex (const iMatrix< obj, N > &z) -> typename iMatrix< obj, N >::Complexified
 BINARY_RSCALAR (div, Integer)
 BINARY_RSCALAR (mod, Integer)
 BINARY_RSCALAR (pow, RealD)
 BINARY_RSCALAR (pow, RealF)
 NAMESPACE_END (Grid)

Macro Definition Documentation

◆ UNARY

#define UNARY ( func)

Definition at line 35 of file Tensor_unary.h.

◆ BINARY_RSCALAR

#define BINARY_RSCALAR ( func,
scal )

Definition at line 61 of file Tensor_unary.h.

Function Documentation

◆ NAMESPACE_BEGIN()

NAMESPACE_BEGIN ( Grid )

◆ UNARY() [1/9]

UNARY ( sqrt )

References sqrt().

◆ UNARY() [2/9]

UNARY ( sin )

References sin().

◆ UNARY() [3/9]

UNARY ( cos )

References cos().

◆ UNARY() [4/9]

UNARY ( asin )

References asin().

◆ UNARY() [5/9]

UNARY ( acos )

References acos().

◆ UNARY() [6/9]

UNARY ( log )

References log().

◆ UNARY() [7/9]

UNARY ( exp )

References exp().

◆ UNARY() [8/9]

UNARY ( abs )

References abs().

◆ UNARY() [9/9]

UNARY ( Not )

References Not().

◆ toReal() [1/3]

template<class obj>
accelerator_inline auto toReal ( const iScalar< obj > & z) -> typename iScalar< obj >::Realified

Definition at line 97 of file Tensor_unary.h.

References iScalar< vtype >::_internal, accelerator_inline, and toReal().

Referenced by toReal(), toReal(), and toReal().

◆ toReal() [2/3]

template<class obj, int N>
accelerator_inline auto toReal ( const iVector< obj, N > & z) -> typename iVector< obj, N >::Realified

Definition at line 103 of file Tensor_unary.h.

References iVector< vtype, N >::_internal, accelerator_inline, and toReal().

◆ toReal() [3/3]

template<class obj, int N>
accelerator_inline auto toReal ( const iMatrix< obj, N > & z) -> typename iMatrix< obj, N >::Realified

Definition at line 111 of file Tensor_unary.h.

References iMatrix< vtype, N >::_internal, accelerator_inline, and toReal().

◆ toComplex() [1/3]

template<class obj>
accelerator_inline auto toComplex ( const iScalar< obj > & z) -> typename iScalar< obj >::Complexified

Definition at line 121 of file Tensor_unary.h.

References iScalar< vtype >::_internal, accelerator_inline, and toComplex().

Referenced by toComplex(), toComplex(), and toComplex().

◆ toComplex() [2/3]

template<class obj, int N>
accelerator_inline auto toComplex ( const iVector< obj, N > & z) -> typename iVector< obj, N >::Complexified

Definition at line 127 of file Tensor_unary.h.

References iVector< vtype, N >::_internal, accelerator_inline, and toComplex().

◆ toComplex() [3/3]

template<class obj, int N>
accelerator_inline auto toComplex ( const iMatrix< obj, N > & z) -> typename iMatrix< obj, N >::Complexified

Definition at line 135 of file Tensor_unary.h.

References iMatrix< vtype, N >::_internal, accelerator_inline, and toComplex().

◆ BINARY_RSCALAR() [1/4]

BINARY_RSCALAR ( div ,
Integer  )

References div().

◆ BINARY_RSCALAR() [2/4]

BINARY_RSCALAR ( mod ,
Integer  )

References mod().

◆ BINARY_RSCALAR() [3/4]

BINARY_RSCALAR ( pow ,
RealD  )

References pow().

◆ BINARY_RSCALAR() [4/4]

BINARY_RSCALAR ( pow ,
RealF  )

References pow().

◆ NAMESPACE_END()

NAMESPACE_END ( Grid )