Logo ROOT  
Reference Guide
 
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Loading...
Searching...
No Matches
TComplex Class Reference

Definition at line 29 of file TComplex.h.

Public Types

template<class T >
using enable_if_arithmetic = typename std::enable_if<std::is_arithmetic<T>::value, bool>::type
 

Public Member Functions

 TComplex ()
 
 TComplex (Double_t re, Double_t im=0, Bool_t polar=kFALSE)
 Standard constructor.
 
virtual ~TComplex ()
 
Double_t Im () const
 
virtual TClassIsA () const
 
 operator Double_t () const
 
 operator Float_t () const
 
 operator Int_t () const
 
TComplex operator() (Double_t x, Double_t y, Bool_t polar=kFALSE)
 
TComplex operator* (const TComplex &c) const
 
template<class T , enable_if_arithmetic< T > = true>
TComplex operator* (T c) const
 
TComplex operator*= (const TComplex &c)
 
TComplex operator+ ()
 
TComplex operator+ (const TComplex &c) const
 
template<class T , enable_if_arithmetic< T > = true>
TComplex operator+ (T c) const
 
TComplex operator+= (const TComplex &c)
 
TComplex operator- ()
 
TComplex operator- (const TComplex &c) const
 
template<class T , enable_if_arithmetic< T > = true>
TComplex operator- (T c) const
 
TComplex operator-= (const TComplex &c)
 
TComplex operator/ (const TComplex &c) const
 
template<class T , enable_if_arithmetic< T > = true>
TComplex operator/ (T c) const
 
TComplex operator/= (const TComplex &c)
 
Double_t Re () const
 
Double_t Rho () const
 
Double_t Rho2 () const
 
virtual void Streamer (TBuffer &)
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
Double_t Theta () const
 

Static Public Member Functions

static Double_t Abs (const TComplex &c)
 
static TComplex ACos (const TComplex &c)
 
static TComplex ACosH (const TComplex &c)
 
static TComplex ASin (const TComplex &c)
 
static TComplex ASinH (const TComplex &c)
 
static TComplex ATan (const TComplex &c)
 
static TComplex ATanH (const TComplex &c)
 
static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static TComplex Conjugate (const TComplex &c)
 
static TComplex Cos (const TComplex &c)
 
static TComplex CosH (const TComplex &c)
 
static const char * DeclFileName ()
 
static TComplex Exp (const TComplex &c)
 
static Int_t Finite (const TComplex &c)
 
static TComplex I ()
 
static Int_t IsNaN (const TComplex &c)
 
static TComplex Log (const TComplex &c)
 
static TComplex Log10 (const TComplex &c)
 
static TComplex Log2 (const TComplex &c)
 
static TComplex Max (const TComplex &a, const TComplex &b)
 
static TComplex Min (const TComplex &a, const TComplex &b)
 
static TComplex Normalize (const TComplex &c)
 
static TComplex One ()
 
static TComplex Power (const TComplex &x, const TComplex &y)
 
static TComplex Power (const TComplex &x, Double_t y)
 
static TComplex Power (const TComplex &x, Int_t y)
 
static TComplex Power (Double_t x, const TComplex &y)
 
static TComplex Range (const TComplex &lb, const TComplex &ub, const TComplex &c)
 
static TComplex Sin (const TComplex &c)
 
static TComplex SinH (const TComplex &c)
 
static TComplex Sqrt (const TComplex &c)
 
static TComplex Tan (const TComplex &c)
 
static TComplex TanH (const TComplex &c)
 

Protected Attributes

Double_t fIm
 
Double_t fRe
 

Friends

template<class T , enable_if_arithmetic< T > = true>
TComplex operator* (T d, const TComplex &c)
 
template<class T , enable_if_arithmetic< T > = true>
TComplex operator+ (T d, const TComplex &c)
 
template<class T , enable_if_arithmetic< T > = true>
TComplex operator- (T d, const TComplex &c)
 
template<class T , enable_if_arithmetic< T > = true>
TComplex operator/ (T d, const TComplex &c)
 
std::ostream & operator<< (std::ostream &out, const TComplex &c)
 
std::istream & operator>> (std::istream &in, TComplex &c)
 

#include <TComplex.h>

Member Typedef Documentation

◆ enable_if_arithmetic

template<class T >
using TComplex::enable_if_arithmetic = typename std::enable_if<std::is_arithmetic<T>::value, bool>::type

Definition at line 84 of file TComplex.h.

Constructor & Destructor Documentation

◆ TComplex() [1/2]

TComplex::TComplex ( )
inline

Definition at line 37 of file TComplex.h.

◆ TComplex() [2/2]

TComplex::TComplex ( Double_t re,
Double_t im = 0,
Bool_t polar = kFALSE )

Standard constructor.

Definition at line 27 of file TComplex.cxx.

◆ ~TComplex()

virtual TComplex::~TComplex ( )
inlinevirtual

Definition at line 39 of file TComplex.h.

Member Function Documentation

◆ Abs()

static Double_t TComplex::Abs ( const TComplex & c)
inlinestatic

Definition at line 156 of file TComplex.h.

◆ ACos()

static TComplex TComplex::ACos ( const TComplex & c)
inlinestatic

Definition at line 135 of file TComplex.h.

◆ ACosH()

static TComplex TComplex::ACosH ( const TComplex & c)
inlinestatic

Definition at line 151 of file TComplex.h.

◆ ASin()

static TComplex TComplex::ASin ( const TComplex & c)
inlinestatic

Definition at line 133 of file TComplex.h.

◆ ASinH()

static TComplex TComplex::ASinH ( const TComplex & c)
inlinestatic

Definition at line 149 of file TComplex.h.

◆ ATan()

static TComplex TComplex::ATan ( const TComplex & c)
inlinestatic

Definition at line 137 of file TComplex.h.

◆ ATanH()

static TComplex TComplex::ATanH ( const TComplex & c)
inlinestatic

Definition at line 153 of file TComplex.h.

◆ Class()

static TClass * TComplex::Class ( )
static
Returns
TClass describing this class

◆ Class_Name()

static const char * TComplex::Class_Name ( )
static
Returns
Name of this class

◆ Class_Version()

static constexpr Version_t TComplex::Class_Version ( )
inlinestaticconstexpr
Returns
Version of this class

Definition at line 194 of file TComplex.h.

◆ Conjugate()

static TComplex TComplex::Conjugate ( const TComplex & c)
inlinestatic

Definition at line 185 of file TComplex.h.

◆ Cos()

static TComplex TComplex::Cos ( const TComplex & c)
inlinestatic

Definition at line 127 of file TComplex.h.

◆ CosH()

static TComplex TComplex::CosH ( const TComplex & c)
inlinestatic

Definition at line 143 of file TComplex.h.

◆ DeclFileName()

static const char * TComplex::DeclFileName ( )
inlinestatic
Returns
Name of the file containing the class declaration

Definition at line 194 of file TComplex.h.

◆ Exp()

static TComplex TComplex::Exp ( const TComplex & c)
inlinestatic

Definition at line 115 of file TComplex.h.

◆ Finite()

static Int_t TComplex::Finite ( const TComplex & c)
inlinestatic

Definition at line 174 of file TComplex.h.

◆ I()

static TComplex TComplex::I ( )
inlinestatic

Definition at line 42 of file TComplex.h.

◆ Im()

Double_t TComplex::Im ( ) const
inline

Definition at line 47 of file TComplex.h.

◆ IsA()

virtual TClass * TComplex::IsA ( ) const
inlinevirtual
Returns
TClass describing current object

Definition at line 194 of file TComplex.h.

◆ IsNaN()

static Int_t TComplex::IsNaN ( const TComplex & c)
inlinestatic

Definition at line 176 of file TComplex.h.

◆ Log()

static TComplex TComplex::Log ( const TComplex & c)
inlinestatic

Definition at line 117 of file TComplex.h.

◆ Log10()

static TComplex TComplex::Log10 ( const TComplex & c)
inlinestatic

Definition at line 121 of file TComplex.h.

◆ Log2()

static TComplex TComplex::Log2 ( const TComplex & c)
inlinestatic

Definition at line 119 of file TComplex.h.

◆ Max()

static TComplex TComplex::Max ( const TComplex & a,
const TComplex & b )
inlinestatic

Definition at line 181 of file TComplex.h.

◆ Min()

static TComplex TComplex::Min ( const TComplex & a,
const TComplex & b )
inlinestatic

Definition at line 179 of file TComplex.h.

◆ Normalize()

static TComplex TComplex::Normalize ( const TComplex & c)
inlinestatic

Definition at line 183 of file TComplex.h.

◆ One()

static TComplex TComplex::One ( )
inlinestatic

Definition at line 43 of file TComplex.h.

◆ operator Double_t()

TComplex::operator Double_t ( ) const
inline

Definition at line 107 of file TComplex.h.

◆ operator Float_t()

TComplex::operator Float_t ( ) const
inline

Definition at line 108 of file TComplex.h.

◆ operator Int_t()

TComplex::operator Int_t ( ) const
inline

Definition at line 109 of file TComplex.h.

◆ operator()()

TComplex TComplex::operator() ( Double_t x,
Double_t y,
Bool_t polar = kFALSE )
inline

Definition at line 51 of file TComplex.h.

◆ operator*() [1/2]

TComplex TComplex::operator* ( const TComplex & c) const
inline

Definition at line 56 of file TComplex.h.

◆ operator*() [2/2]

template<class T , enable_if_arithmetic< T > = true>
TComplex TComplex::operator* ( T c) const
inline

Definition at line 88 of file TComplex.h.

◆ operator*=()

TComplex TComplex::operator*= ( const TComplex & c)
inline

Definition at line 65 of file TComplex.h.

◆ operator+() [1/3]

TComplex TComplex::operator+ ( )
inline

Definition at line 76 of file TComplex.h.

◆ operator+() [2/3]

TComplex TComplex::operator+ ( const TComplex & c) const
inline

Definition at line 58 of file TComplex.h.

◆ operator+() [3/3]

template<class T , enable_if_arithmetic< T > = true>
TComplex TComplex::operator+ ( T c) const
inline

Definition at line 90 of file TComplex.h.

◆ operator+=()

TComplex TComplex::operator+= ( const TComplex & c)
inline

Definition at line 67 of file TComplex.h.

◆ operator-() [1/3]

TComplex TComplex::operator- ( )
inline

Definition at line 74 of file TComplex.h.

◆ operator-() [2/3]

TComplex TComplex::operator- ( const TComplex & c) const
inline

Definition at line 62 of file TComplex.h.

◆ operator-() [3/3]

template<class T , enable_if_arithmetic< T > = true>
TComplex TComplex::operator- ( T c) const
inline

Definition at line 94 of file TComplex.h.

◆ operator-=()

TComplex TComplex::operator-= ( const TComplex & c)
inline

Definition at line 71 of file TComplex.h.

◆ operator/() [1/2]

TComplex TComplex::operator/ ( const TComplex & c) const
inline

Definition at line 60 of file TComplex.h.

◆ operator/() [2/2]

template<class T , enable_if_arithmetic< T > = true>
TComplex TComplex::operator/ ( T c) const
inline

Definition at line 92 of file TComplex.h.

◆ operator/=()

TComplex TComplex::operator/= ( const TComplex & c)
inline

Definition at line 69 of file TComplex.h.

◆ Power() [1/4]

static TComplex TComplex::Power ( const TComplex & x,
const TComplex & y )
inlinestatic

Definition at line 159 of file TComplex.h.

◆ Power() [2/4]

static TComplex TComplex::Power ( const TComplex & x,
Double_t y )
inlinestatic

Definition at line 164 of file TComplex.h.

◆ Power() [3/4]

static TComplex TComplex::Power ( const TComplex & x,
Int_t y )
inlinestatic

Definition at line 171 of file TComplex.h.

◆ Power() [4/4]

static TComplex TComplex::Power ( Double_t x,
const TComplex & y )
inlinestatic

Definition at line 166 of file TComplex.h.

◆ Range()

static TComplex TComplex::Range ( const TComplex & lb,
const TComplex & ub,
const TComplex & c )
inlinestatic

Definition at line 187 of file TComplex.h.

◆ Re()

Double_t TComplex::Re ( ) const
inline

Definition at line 46 of file TComplex.h.

◆ Rho()

Double_t TComplex::Rho ( ) const
inline

Definition at line 48 of file TComplex.h.

◆ Rho2()

Double_t TComplex::Rho2 ( ) const
inline

Definition at line 49 of file TComplex.h.

◆ Sin()

static TComplex TComplex::Sin ( const TComplex & c)
inlinestatic

Definition at line 124 of file TComplex.h.

◆ SinH()

static TComplex TComplex::SinH ( const TComplex & c)
inlinestatic

Definition at line 140 of file TComplex.h.

◆ Sqrt()

static TComplex TComplex::Sqrt ( const TComplex & c)
inlinestatic

Definition at line 112 of file TComplex.h.

◆ Streamer()

virtual void TComplex::Streamer ( TBuffer & )
virtual

◆ StreamerNVirtual()

void TComplex::StreamerNVirtual ( TBuffer & ClassDef_StreamerNVirtual_b)
inline

Definition at line 194 of file TComplex.h.

◆ Tan()

static TComplex TComplex::Tan ( const TComplex & c)
inlinestatic

Definition at line 130 of file TComplex.h.

◆ TanH()

static TComplex TComplex::TanH ( const TComplex & c)
inlinestatic

Definition at line 146 of file TComplex.h.

◆ Theta()

Double_t TComplex::Theta ( ) const
inline

Definition at line 50 of file TComplex.h.

Friends And Related Symbol Documentation

◆ operator*

template<class T , enable_if_arithmetic< T > = true>
TComplex operator* ( T d,
const TComplex & c )
friend

Definition at line 98 of file TComplex.h.

◆ operator+

template<class T , enable_if_arithmetic< T > = true>
TComplex operator+ ( T d,
const TComplex & c )
friend

Definition at line 100 of file TComplex.h.

◆ operator-

template<class T , enable_if_arithmetic< T > = true>
TComplex operator- ( T d,
const TComplex & c )
friend

Definition at line 104 of file TComplex.h.

◆ operator/

template<class T , enable_if_arithmetic< T > = true>
TComplex operator/ ( T d,
const TComplex & c )
friend

Definition at line 102 of file TComplex.h.

◆ operator<<

std::ostream & operator<< ( std::ostream & out,
const TComplex & c )
friend

Definition at line 41 of file TComplex.cxx.

◆ operator>>

std::istream & operator>> ( std::istream & in,
TComplex & c )
friend

Definition at line 49 of file TComplex.cxx.

Member Data Documentation

◆ fIm

Double_t TComplex::fIm
protected

Definition at line 33 of file TComplex.h.

◆ fRe

Double_t TComplex::fRe
protected

Definition at line 32 of file TComplex.h.

Libraries for TComplex:

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