AmpGen 2.1
Loading...
Searching...
No Matches
AmpGen::Complex< real_t > Struct Template Reference

Detailed Description

template<typename real_t>
struct AmpGen::Complex< real_t >

Definition at line 8 of file Complex.h.

Public Types

using rt = real_t
 

Public Member Functions

 Complex ()=default
 
 Complex (const real_t &re, const real_t &im)
 
 Complex (const std::complex< double > &f)
 
 Complex (const std::complex< float > &f)
 
 Complex (const real_t &arg)
 
 Complex (const real_t &re, const double &im)
 
Complex operator+= (const Complex &rhs)
 
Complex operator-= (const Complex &rhs)
 
Complex operator*= (const Complex &rhs)
 
Complex operator/= (const Complex &rhs)
 
real_t real () const
 
real_t imag () const
 
real_t norm () const
 

Public Attributes

real_t re
 
real_t im
 

Member Typedef Documentation

◆ rt

template<typename real_t>
using AmpGen::Complex< real_t >::rt = real_t

Definition at line 11 of file Complex.h.

Constructor & Destructor Documentation

◆ Complex() [1/6]

template<typename real_t>
AmpGen::Complex< real_t >::Complex ( )
default

◆ Complex() [2/6]

template<typename real_t>
AmpGen::Complex< real_t >::Complex ( const real_t & re,
const real_t & im )
inline

Definition at line 13 of file Complex.h.

◆ Complex() [3/6]

template<typename real_t>
AmpGen::Complex< real_t >::Complex ( const std::complex< double > & f)
inline

Definition at line 15 of file Complex.h.

◆ Complex() [4/6]

template<typename real_t>
AmpGen::Complex< real_t >::Complex ( const std::complex< float > & f)
inline

Definition at line 16 of file Complex.h.

◆ Complex() [5/6]

template<typename real_t>
AmpGen::Complex< real_t >::Complex ( const real_t & arg)
inlineexplicit

Definition at line 17 of file Complex.h.

◆ Complex() [6/6]

template<typename real_t>
AmpGen::Complex< real_t >::Complex ( const real_t & re,
const double & im )
inline

Definition at line 18 of file Complex.h.

Member Function Documentation

◆ imag()

template<typename real_t>
real_t AmpGen::Complex< real_t >::imag ( ) const
inline

Definition at line 25 of file Complex.h.

◆ norm()

template<typename real_t>
real_t AmpGen::Complex< real_t >::norm ( ) const
inline

Definition at line 26 of file Complex.h.

◆ operator*=()

template<typename real_t>
Complex< real_t > AmpGen::Complex< real_t >::operator*= ( const Complex< real_t > & rhs)
inline

Definition at line 65 of file Complex.h.

◆ operator+=()

template<typename real_t>
Complex< real_t > AmpGen::Complex< real_t >::operator+= ( const Complex< real_t > & rhs)
inline

Definition at line 63 of file Complex.h.

◆ operator-=()

template<typename real_t>
Complex< real_t > AmpGen::Complex< real_t >::operator-= ( const Complex< real_t > & rhs)
inline

Definition at line 64 of file Complex.h.

◆ operator/=()

template<typename real_t>
Complex< real_t > AmpGen::Complex< real_t >::operator/= ( const Complex< real_t > & rhs)
inline

Definition at line 66 of file Complex.h.

◆ real()

template<typename real_t>
real_t AmpGen::Complex< real_t >::real ( ) const
inline

Definition at line 24 of file Complex.h.

Member Data Documentation

◆ im

template<typename real_t>
real_t AmpGen::Complex< real_t >::im

Definition at line 10 of file Complex.h.

◆ re

template<typename real_t>
real_t AmpGen::Complex< real_t >::re

Definition at line 9 of file Complex.h.


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