XGC1
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
Complex Struct Reference

#include <complex.hpp>

Public Member Functions

KOKKOS_INLINE_FUNCTION Complex (double r=0.0, double i=0.0)
 
KOKKOS_INLINE_FUNCTION Complex operator+ (const Complex &other) const
 
KOKKOS_INLINE_FUNCTION Complex operator* (const Complex &other) const
 
KOKKOS_INLINE_FUNCTION Complex operator* (double scalar) const
 

Static Public Member Functions

static KOKKOS_INLINE_FUNCTION double r_mult (const Complex &a, const Complex &b)
 
static KOKKOS_INLINE_FUNCTION Complex expc (const Complex &c)
 
static KOKKOS_INLINE_FUNCTION Complex exp_i (double imag_in)
 

Public Attributes

double real
 
double imag
 

Constructor & Destructor Documentation

◆ Complex()

KOKKOS_INLINE_FUNCTION Complex::Complex ( double  r = 0.0,
double  i = 0.0 
)
inline
Here is the caller graph for this function:

Member Function Documentation

◆ exp_i()

static KOKKOS_INLINE_FUNCTION Complex Complex::exp_i ( double  imag_in)
inlinestatic
Here is the call graph for this function:

◆ expc()

static KOKKOS_INLINE_FUNCTION Complex Complex::expc ( const Complex c)
inlinestatic
Here is the call graph for this function:

◆ operator*() [1/2]

KOKKOS_INLINE_FUNCTION Complex Complex::operator* ( const Complex other) const
inline
Here is the call graph for this function:

◆ operator*() [2/2]

KOKKOS_INLINE_FUNCTION Complex Complex::operator* ( double  scalar) const
inline
Here is the call graph for this function:

◆ operator+()

KOKKOS_INLINE_FUNCTION Complex Complex::operator+ ( const Complex other) const
inline
Here is the call graph for this function:

◆ r_mult()

static KOKKOS_INLINE_FUNCTION double Complex::r_mult ( const Complex a,
const Complex b 
)
inlinestatic
Here is the caller graph for this function:

Member Data Documentation

◆ imag

double Complex::imag

◆ real

double Complex::real

The documentation for this struct was generated from the following file: