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

#include <mytypes.hpp>

Inheritance diagram for libFloatComplex:
Inheritance graph
Collaboration diagram for libFloatComplex:
Collaboration graph

Public Member Functions

template<typename RealScalar >
__host__ __device__ libFloatComplex (RealScalar real, RealScalar imag)
 
__host__ __device__ float & real ()
 
__host__ __device__ float real () const
 
__host__ __device__ float & imag ()
 
__host__ __device__ float imag () const
 
__host__ __device__ float & real ()
 
__host__ __device__ float real () const
 
__host__ __device__ float & imag ()
 
__host__ __device__ float imag () const
 

Constructor & Destructor Documentation

◆ libFloatComplex()

template<typename RealScalar >
__host__ __device__ libFloatComplex::libFloatComplex ( RealScalar  real,
RealScalar  imag 
)
inline
69 {
70 this->x = static_cast<float>(real);
71 this->y = static_cast<float>(imag);
72 }
__host__ __device__ float & real()
Definition mytypes.hpp:73
__host__ __device__ float & imag()
Definition mytypes.hpp:75

Member Function Documentation

◆ imag() [1/4]

__host__ __device__ float & libFloatComplex::imag ( )
inline
75{ return this->y; }

◆ imag() [2/4]

__host__ __device__ float & libFloatComplex::imag ( )
inline
104{ return this->i; }

◆ imag() [3/4]

__host__ __device__ float libFloatComplex::imag ( ) const
inline
76{ return this->y; }

◆ imag() [4/4]

__host__ __device__ float libFloatComplex::imag ( ) const
inline
105{ return this->i; }

◆ real() [1/4]

__host__ __device__ float & libFloatComplex::real ( )
inline
73{ return this->x; }

◆ real() [2/4]

__host__ __device__ float & libFloatComplex::real ( )
inline
102{ return this->r; }

◆ real() [3/4]

__host__ __device__ float libFloatComplex::real ( ) const
inline
74{ return this->x; }

◆ real() [4/4]

__host__ __device__ float libFloatComplex::real ( ) const
inline
103{ return this->r; }

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