MINT2
Functions
FitComplex.cpp File Reference
#include <cmath>
#include <string>
#include "Mint/CLHEPPhysicalConstants.h"
#include "Mint/FitComplex.h"
#include "Mint/FitComplexPolar.h"
#include "Mint/FitComplexCart.h"
#include "Mint/FitParDependent.h"
#include "Mint/IFitParRegister.h"

Go to the source code of this file.

Functions

std::complex< double > operator * (const std::complex< double > &cplx, const FitComplex &fc)
 
std::complex< double > operator * (const FitComplex &fc, const std::complex< double > &cplx)
 
std::complex< double > operator+ (const std::complex< double > &cplx, const FitComplex &fc)
 
std::complex< double > operator+ (const FitComplex &fc, const std::complex< double > &cplx)
 
std::complex< double > operator- (const std::complex< double > &cplx, const FitComplex &fc)
 
std::complex< double > operator- (const FitComplex &fc, const std::complex< double > &cplx)
 
std::complex< double > operator/ (const std::complex< double > &cplx, const FitComplex &fc)
 
std::complex< double > operator/ (const FitComplex &fc, const std::complex< double > &cplx)
 
std::ostream & operator<< (std::ostream &os, const FitComplex &fc)
 

Function Documentation

◆ operator *() [1/2]

std::complex<double> operator * ( const std::complex< double > &  cplx,
const FitComplex fc 
)

Definition at line 86 of file FitComplex.cpp.

87  {
88  return cplx * fc.getVal();
89 }
virtual std::complex< double > getVal() const =0

◆ operator *() [2/2]

std::complex<double> operator * ( const FitComplex fc,
const std::complex< double > &  cplx 
)

Definition at line 90 of file FitComplex.cpp.

91  {
92  return fc.getVal() * cplx;
93 }
virtual std::complex< double > getVal() const =0

◆ operator+() [1/2]

std::complex<double> operator+ ( const std::complex< double > &  cplx,
const FitComplex fc 
)

Definition at line 95 of file FitComplex.cpp.

96  {
97  return cplx + fc.getVal();
98 }
virtual std::complex< double > getVal() const =0

◆ operator+() [2/2]

std::complex<double> operator+ ( const FitComplex fc,
const std::complex< double > &  cplx 
)

Definition at line 99 of file FitComplex.cpp.

100  {
101  return fc.getVal() + cplx;
102 }
virtual std::complex< double > getVal() const =0

◆ operator-() [1/2]

std::complex<double> operator- ( const std::complex< double > &  cplx,
const FitComplex fc 
)

Definition at line 104 of file FitComplex.cpp.

105  {
106  return cplx - fc.getVal();
107 }
virtual std::complex< double > getVal() const =0

◆ operator-() [2/2]

std::complex<double> operator- ( const FitComplex fc,
const std::complex< double > &  cplx 
)

Definition at line 108 of file FitComplex.cpp.

109  {
110  return fc.getVal() - cplx;
111 }
virtual std::complex< double > getVal() const =0

◆ operator/() [1/2]

std::complex<double> operator/ ( const std::complex< double > &  cplx,
const FitComplex fc 
)

Definition at line 113 of file FitComplex.cpp.

114  {
115  return cplx / fc.getVal();
116 }
virtual std::complex< double > getVal() const =0

◆ operator/() [2/2]

std::complex<double> operator/ ( const FitComplex fc,
const std::complex< double > &  cplx 
)

Definition at line 117 of file FitComplex.cpp.

118  {
119  return fc.getVal()/cplx;
120 }
virtual std::complex< double > getVal() const =0

◆ operator<<()

std::ostream& operator<< ( std::ostream &  os,
const FitComplex fc 
)

Definition at line 122 of file FitComplex.cpp.

122  {
123  fc.print(os);
124  return os;
125 }
virtual void print(std::ostream &os=std::cout) const
Definition: FitComplex.cpp:81