StatMech
Loading...
Searching...
No Matches
Complex_t< T > Class Template Reference

#include <mytypes.hpp>

Inheritance diagram for Complex_t< T >:
Inheritance graph
Collaboration diagram for Complex_t< T >:
Collaboration graph

Public Member Functions

__host__ __device__ Complex_t (complex< T > const &z)
 
template<class U >
__host__ __device__ Complex_t (Complex_t< U > const &z)
 
__host__ __device__ Complex_t (magmaFloatComplex const &z)
 
__host__ __device__ Complex_t (magmaDoubleComplex const &z)
 
__host__ __device__ Complex_t (libFloatComplex const &z)
 
__host__ __device__ Complex_t (libDoubleComplex const &z)
 
__host__ __device__ operator libFloatComplex () const
 
__host__ __device__ operator libDoubleComplex () const
 

Constructor & Destructor Documentation

◆ Complex_t() [1/6]

template<class T = Real_t>
__host__ __device__ Complex_t< T >::Complex_t ( complex< T > const &  z)
inline
151: complex<T>(z) {}
std::conditional_t< std::is_same_v< T, float >, myFloatComplex, std::conditional_t< std::is_same_v< T, double >, myDoubleComplex, myComplex< T > > > complex
Definition mytypes.hpp:133

◆ Complex_t() [2/6]

template<class T = Real_t>
template<class U >
__host__ __device__ Complex_t< T >::Complex_t ( Complex_t< U > const &  z)
inline
154: complex<T>(z.real(), z.imag()) {}

◆ Complex_t() [3/6]

template<class T = Real_t>
__host__ __device__ Complex_t< T >::Complex_t ( magmaFloatComplex const &  z)
inline
157: complex<T>(z.x, z.y) {}

◆ Complex_t() [4/6]

template<class T = Real_t>
__host__ __device__ Complex_t< T >::Complex_t ( magmaDoubleComplex const &  z)
inline
158: complex<T>(z.x, z.y) {}

◆ Complex_t() [5/6]

template<class T = Real_t>
__host__ __device__ Complex_t< T >::Complex_t ( libFloatComplex const &  z)
inline
161: complex<T>(z.real(), z.imag()) {}

◆ Complex_t() [6/6]

template<class T = Real_t>
__host__ __device__ Complex_t< T >::Complex_t ( libDoubleComplex const &  z)
inline
162: complex<T>(z.real(), z.imag()) {}

Member Function Documentation

◆ operator libDoubleComplex()

template<class T = Real_t>
__host__ __device__ Complex_t< T >::operator libDoubleComplex ( ) const
inline
166 {
167 return libDoubleComplex(this->real(), this->imag());
168 }
Definition mytypes.hpp:78

◆ operator libFloatComplex()

template<class T = Real_t>
__host__ __device__ Complex_t< T >::operator libFloatComplex ( ) const
inline
163 {
164 return libFloatComplex(this->real(), this->imag());
165 }
Definition mytypes.hpp:65

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