StatMech
Loading...
Searching...
No Matches
libDoubleComplex Class Reference

#include <mytypes.hpp>

Inheritance diagram for libDoubleComplex:
Inheritance graph
Collaboration diagram for libDoubleComplex:
Collaboration graph

Public Member Functions

template<typename RealScalar >
__host__ __device__ libDoubleComplex (RealScalar real, RealScalar imag)
 
__host__ __device__ double & real ()
 
__host__ __device__ double real () const
 
__host__ __device__ double & imag ()
 
__host__ __device__ double imag () const
 
__host__ __device__ double & real ()
 
__host__ __device__ double real () const
 
__host__ __device__ double & imag ()
 
__host__ __device__ double imag () const
 

Constructor & Destructor Documentation

◆ libDoubleComplex()

template<typename RealScalar >
__host__ __device__ libDoubleComplex::libDoubleComplex ( RealScalar  real,
RealScalar  imag 
)
inline
82 {
83 this->x = static_cast<double>(real);
84 this->y = static_cast<double>(imag);
85 }
__host__ __device__ double & imag()
Definition mytypes.hpp:88
__host__ __device__ double & real()
Definition mytypes.hpp:86

Member Function Documentation

◆ imag() [1/4]

__host__ __device__ double & libDoubleComplex::imag ( )
inline
88{ return this->y; }

◆ imag() [2/4]

__host__ __device__ double & libDoubleComplex::imag ( )
inline
112{ return this->i; }

◆ imag() [3/4]

__host__ __device__ double libDoubleComplex::imag ( ) const
inline
89{ return this->y; }

◆ imag() [4/4]

__host__ __device__ double libDoubleComplex::imag ( ) const
inline
113{ return this->i; }

◆ real() [1/4]

__host__ __device__ double & libDoubleComplex::real ( )
inline
86{ return this->x; }

◆ real() [2/4]

__host__ __device__ double & libDoubleComplex::real ( )
inline
110{ return this->r; }

◆ real() [3/4]

__host__ __device__ double libDoubleComplex::real ( ) const
inline
87{ return this->x; }

◆ real() [4/4]

__host__ __device__ double libDoubleComplex::real ( ) const
inline
111{ return this->r; }

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