#include "CTBcomplex.hxx"
Collaboration diagram for CTBcomplex:
Public Methods | |
CTBcomplex (T f_re=0.0, T f_im=0.0) | |
T & | Re () |
const T & | Re () const |
T & | Im () |
const T & | Im () const |
void | Re (T f_re) |
void | Im (T f_im) |
T | Abs () const |
T | Arg () const |
bool | IsReal () const |
bool | IsImaginary () const |
CTBcomplex< T > | Conj () const |
CTBcomplex< T > | TimesI () const |
CTBcomplex< T > | Sqrt () const |
CTBcomplex< T > | Exp () const |
CTBcomplex< T > | Log () const |
CTBcomplex< T > | Sin () const |
CTBcomplex< T > | Cos () const |
CTBcomplex< T > | Tan () const |
CTBcomplex< T > | Asin () const |
CTBcomplex< T > | Acos () const |
CTBcomplex< T > | Atan () const |
CTBcomplex< T > | Sinh () const |
CTBcomplex< T > | Cosh () const |
CTBcomplex< T > | Tanh () const |
CTBcomplex< T > | Asinh () const |
CTBcomplex< T > | Acosh () const |
CTBcomplex< T > | Atanh () const |
CTBcomplex< T > | Pow (int i_y) const |
CTBcomplex< T > | Pow (const CTBcomplex< T > &z_y) const |
CTBcomplex< T > | Divide (const CTBcomplex< T > &z_den) const |
CTBcomplex< T > | Invert (T f_nom) const |
void | ToStream (ostream &os) const |
void | FromStream (istream &is) |
CTBcomplex< T > & | operator= (T f_r) |
bool | operator! () const |
operator void * () const | |
CTBcomplex< T > | operator+ () const |
CTBcomplex< T > | operator- () const |
CTBcomplex< T > & | operator+= (const CTBcomplex< T > &z) |
CTBcomplex< T > & | operator+= (T f_r) |
CTBcomplex< T > & | operator-= (const CTBcomplex< T > &z) |
CTBcomplex< T > & | operator-= (T f_r) |
CTBcomplex< T > & | operator *= (const CTBcomplex< T > &z) |
CTBcomplex< T > & | operator *= (T f_r) |
CTBcomplex< T > & | operator/= (const CTBcomplex< T > &z) |
CTBcomplex< T > & | operator/= (T f_r) |
Private Attributes | |
T | mf_re |
T | mf_im |
Related Functions | |
(Note that these are not member functions.) | |
CTBcomplex< T > | operator+ (const CTBcomplex< T > &lhs, const CTBcomplex< T > &rhs) |
CTBcomplex< T > | operator+ (const CTBcomplex< T > &lhs, T f_rhs) |
CTBcomplex< T > | operator+ (T f_lhs, const CTBcomplex< T > &rhs) |
CTBcomplex< T > | operator- (const CTBcomplex< T > &lhs, const CTBcomplex< T > &rhs) |
CTBcomplex< T > | operator- (const CTBcomplex< T > &lhs, T f_rhs) |
CTBcomplex< T > | operator- (T f_lhs, const CTBcomplex< T > &rhs) |
CTBcomplex< T > | operator * (const CTBcomplex< T > &lhs, const CTBcomplex< T > &rhs) |
CTBcomplex< T > | operator * (const CTBcomplex< T > &lhs, T f_rhs) |
CTBcomplex< T > | operator * (T f_lhs, const CTBcomplex< T > &rhs) |
CTBcomplex< T > | operator/ (const CTBcomplex< T > &lhs, const CTBcomplex< T > &rhs) |
CTBcomplex< T > | operator/ (const CTBcomplex< T > &lhs, T f_rhs) |
CTBcomplex< T > | operator/ (T f_lhs, const CTBcomplex< T > &rhs) |
bool | operator== (const CTBcomplex< T > &lhs, const CTBcomplex< T > &rhs) |
bool | operator== (const CTBcomplex< T > &lhs, T f_rhs) |
bool | operator== (T f_lhs, const CTBcomplex< T > &rhs) |
ostream & | operator<< (ostream &os, const CTBcomplex< T > &obj) |
istream & | operator>> (istream &is, CTBcomplex< T > &obj) |
T | CTBabs (const CTBcomplex< T > &z) |
T | CTBabsm (const CTBcomplex< T > &z) |
T | CTBabs2 (const CTBcomplex< T > &z) |
T | CTBarg (const CTBcomplex< T > &z) |
T | CTBreal (const CTBcomplex< T > &z) |
T | CTBimag (const CTBcomplex< T > &z) |
CTBcomplex< T > | CTBconj (const CTBcomplex< T > &z) |
CTBcomplex< T > | CTBtimesI (const CTBcomplex< T > &z) |
CTBcomplex< T > | CTBsqrt (const CTBcomplex< T > &z) |
CTBcomplex< T > | CTBexp (const CTBcomplex< T > &z) |
CTBcomplex< T > | CTBlog (const CTBcomplex< T > &z) |
CTBcomplex< T > | CTBsin (const CTBcomplex< T > &z) |
CTBcomplex< T > | CTBcos (const CTBcomplex< T > &z) |
CTBcomplex< T > | CTBtan (const CTBcomplex< T > &z) |
CTBcomplex< T > | CTBasin (const CTBcomplex< T > &z) |
CTBcomplex< T > | CTBacos (const CTBcomplex< T > &z) |
CTBcomplex< T > | CTBatan (const CTBcomplex< T > &z) |
CTBcomplex< T > | CTBsinh (const CTBcomplex< T > &z) |
CTBcomplex< T > | CTBcosh (const CTBcomplex< T > &z) |
CTBcomplex< T > | CTBtanh (const CTBcomplex< T > &z) |
CTBcomplex< T > | CTBasinh (const CTBcomplex< T > &z) |
CTBcomplex< T > | CTBacosh (const CTBcomplex< T > &z) |
CTBcomplex< T > | CTBatanh (const CTBcomplex< T > &z) |
CTBcomplex< T > | CTBpow (const CTBcomplex< T > &z_x, int i_y) |
CTBcomplex< T > | CTBpow (const CTBcomplex< T > &z_x, const CTBcomplex< T > &z_y) |
CTBprintfS< CTBcomplex< T > > | CTBprintf (CTBcomplex< T > value, const char *c_format, int i_width, int i_precision) |
20. 8.2000 -- Handle scalar-complex operators with a two type template
Definition at line 19 of file CTBcomplex.hxx.
|
Constructor.
Definition at line 23 of file CTBcomplex.icc. |
|
Access real part.
Definition at line 32 of file CTBcomplex.icc. Referenced by CTBabs2(), CTBabsm(), CTBconj(), CTBreal(), CTBtimesI(), operator *(), operator *=(), operator+(), operator-(), operator/(), and operator==().
|
|
Constant access real part.
Definition at line 41 of file CTBcomplex.icc. |
|
Access imaginary part.
Definition at line 50 of file CTBcomplex.icc. Referenced by CTBabs2(), CTBabsm(), CTBconj(), CTBimag(), CTBtimesI(), operator *(), operator *=(), operator+(), operator-(), operator/(), and operator==().
|
|
Constant access imaginary part.
Definition at line 59 of file CTBcomplex.icc. |
|
Set real part.
Definition at line 68 of file CTBcomplex.icc. |
|
Set imaginary part.
Definition at line 78 of file CTBcomplex.icc. |
|
Returns modulus of complex number.
Definition at line 88 of file CTBcomplex.icc. Referenced by CTBabs(), Log(), and Sqrt().
|
|
Returns argument of complex number.
Definition at line 97 of file CTBcomplex.icc. Referenced by CTBarg(), and Log().
|
|
Returns
Definition at line 106 of file CTBcomplex.icc. Referenced by Sqrt().
|
|
Returns
Definition at line 115 of file CTBcomplex.icc. |
|
Returns conjugate of this complex number.
Definition at line 124 of file CTBcomplex.icc. |
|
Returns i times this number.
Definition at line 133 of file CTBcomplex.icc. |
|
Returns square root of this number.
Definition at line 38 of file CTBcomplex.cxx. Referenced by CTBsqrt().
|
|
Returns exp of this number.
Definition at line 114 of file CTBcomplex.cxx. Referenced by CTBexp().
|
|
Returns log of this number.
Definition at line 130 of file CTBcomplex.cxx. Referenced by CTBlog().
|
|
Returns sin of this number.
Definition at line 139 of file CTBcomplex.cxx. Referenced by CTBsin().
|
|
Returns cos of this number.
Definition at line 156 of file CTBcomplex.cxx. Referenced by CTBcos().
|
|
Returns tan of this number.
Definition at line 173 of file CTBcomplex.cxx. Referenced by CTBtan().
|
|
Returns asin of this number.
Definition at line 193 of file CTBcomplex.cxx. Referenced by CTBasin().
|
|
Returns acos of this number.
Definition at line 202 of file CTBcomplex.cxx. Referenced by CTBacos().
|
|
Returns atan of this number.
Definition at line 211 of file CTBcomplex.cxx. Referenced by CTBatan().
|
|
Returns sinh of this number.
Definition at line 222 of file CTBcomplex.cxx. Referenced by CTBsinh().
|
|
Returns cosh of this number.
Definition at line 239 of file CTBcomplex.cxx. Referenced by CTBcosh().
|
|
Returns tanh of this number.
Definition at line 256 of file CTBcomplex.cxx. Referenced by CTBtanh().
|
|
Returns asinh of this number.
Definition at line 276 of file CTBcomplex.cxx. Referenced by CTBasinh().
|
|
Returns acosh of this number.
Definition at line 285 of file CTBcomplex.cxx. Referenced by CTBacosh().
|
|
Returns atanh of this number.
Definition at line 294 of file CTBcomplex.cxx. Referenced by CTBatanh().
|
|
Returns this number to the i_y power.
Definition at line 303 of file CTBcomplex.cxx. Referenced by CTBpow().
|
|
Returns this number to the z_y power.
Definition at line 318 of file CTBcomplex.cxx. |
|
Returns this number divided by z_den.
Definition at line 337 of file CTBcomplex.cxx. Referenced by operator/().
|
|
Returns f_nom divided by this number.
Definition at line 364 of file CTBcomplex.cxx. Referenced by operator/().
|
|
ostream insertion.
Definition at line 389 of file CTBcomplex.cxx. |
|
istream extraction.
Definition at line 405 of file CTBcomplex.cxx. Referenced by operator>>().
|
|
Assign a real number (set imaginary part to zero).
Definition at line 142 of file CTBcomplex.icc. |
|
Returns
Definition at line 153 of file CTBcomplex.icc. |
|
Returns non-zero pointer if number not equal zero. To be used as a save and sane subsitute for `operator bool()' . Definition at line 165 of file CTBcomplex.icc. |
|
Unary plus (is a noop).
Definition at line 174 of file CTBcomplex.icc. |
|
Unary minus.
Definition at line 183 of file CTBcomplex.icc. |
|
Add a complex number.
Definition at line 192 of file CTBcomplex.icc. |
|
Add a real number.
Definition at line 203 of file CTBcomplex.icc. |
|
Subtract a complex number.
Definition at line 213 of file CTBcomplex.icc. |
|
Subtract a real number.
Definition at line 224 of file CTBcomplex.icc. |
|
Multiply by a complex number.
Definition at line 234 of file CTBcomplex.icc. |
|
Multiply by a real number.
Definition at line 248 of file CTBcomplex.icc. |
|
Divide by a complex number.
Definition at line 259 of file CTBcomplex.icc. |
|
Divide by a real number.
Definition at line 270 of file CTBcomplex.icc. |
|
Add two complex numbers.
Definition at line 284 of file CTBcomplex.icc. |
|
Add complex and real number.
Definition at line 297 of file CTBcomplex.icc. |
|
Add real and complex number.
Definition at line 309 of file CTBcomplex.icc. |
|
Subtract two complex numbers.
Definition at line 321 of file CTBcomplex.icc. |
|
Subtract a real from a complex number.
Definition at line 334 of file CTBcomplex.icc. |
|
Subtract a complex from a real number.
Definition at line 346 of file CTBcomplex.icc. |
|
Multiply two complex numbers.
Definition at line 375 of file CTBcomplex.icc. |
|
Multiply a complex by a real number.
Definition at line 389 of file CTBcomplex.icc. |
|
Multiply a real by a complex number.
Definition at line 401 of file CTBcomplex.icc. |
|
Divide two complex numbers.
Definition at line 413 of file CTBcomplex.icc. |
|
Divide a complex by a real number.
Definition at line 426 of file CTBcomplex.icc. |
|
Divide a real by a complex number.
Definition at line 438 of file CTBcomplex.icc. |
|
Returns
Definition at line 450 of file CTBcomplex.icc. |
|
Returns
Definition at line 462 of file CTBcomplex.icc. |
|
Returns
Definition at line 474 of file CTBcomplex.icc. |
|
ostream insertion operator.
Definition at line 486 of file CTBcomplex.icc. |
|
istream extraction operator.
Definition at line 499 of file CTBcomplex.icc. |
|
CTBabs for CTBcomplex.
Definition at line 512 of file CTBcomplex.icc. Referenced by Pow().
|
|
CTBabsm for CTBcomplex.
Definition at line 524 of file CTBcomplex.icc. |
|
CTBabs2 for CTBcomplex.
Definition at line 536 of file CTBcomplex.icc. |
|
CTBarg for CTBcomplex.
Definition at line 548 of file CTBcomplex.icc. |
|
CTBreal for CTBcomplex.
Definition at line 560 of file CTBcomplex.icc. |
|
CTBimag for CTBcomplex.
Definition at line 572 of file CTBcomplex.icc. |
|
CTBconj for CTBcomplex.
Definition at line 584 of file CTBcomplex.icc. |
|
returns i * z .
Definition at line 596 of file CTBcomplex.icc. Referenced by Acos(), Asin(), and Atan().
|
|
CTBsqrt for CTBcomplex.
Definition at line 608 of file CTBcomplex.icc. Referenced by Acos(), Acosh(), Asin(), and Asinh().
|
|
CTBexp for CTBcomplex.
Definition at line 620 of file CTBcomplex.icc. Referenced by Exp(), and Pow().
|
|
CTBlog for CTBcomplex.
Definition at line 632 of file CTBcomplex.icc. Referenced by Acos(), Acosh(), Asin(), Asinh(), Atan(), Atanh(), Log(), and Pow().
|
|
CTBsin for CTBcomplex.
Definition at line 644 of file CTBcomplex.icc. |
|
CTBcos for CTBcomplex.
Definition at line 656 of file CTBcomplex.icc. |
|
CTBtan for CTBcomplex.
Definition at line 668 of file CTBcomplex.icc. |
|
CTBasin for CTBcomplex.
Definition at line 680 of file CTBcomplex.icc. |
|
CTBacos for CTBcomplex.
Definition at line 692 of file CTBcomplex.icc. |
|
CTBatan for CTBcomplex.
Definition at line 704 of file CTBcomplex.icc. |
|
CTBsinh for CTBcomplex.
Definition at line 716 of file CTBcomplex.icc. |
|
CTBcosh for CTBcomplex.
Definition at line 728 of file CTBcomplex.icc. |
|
CTBtanh for CTBcomplex.
Definition at line 740 of file CTBcomplex.icc. |
|
CTBasinh for CTBcomplex.
Definition at line 752 of file CTBcomplex.icc. |
|
CTBacosh for CTBcomplex.
Definition at line 764 of file CTBcomplex.icc. |
|
CTBatanh for CTBcomplex.
Definition at line 776 of file CTBcomplex.icc. |
|
CTBpow for CTBcomplex.
Definition at line 788 of file CTBcomplex.icc. |
|
CTBpow for CTBcomplex.
Definition at line 800 of file CTBcomplex.icc. |
|
Creates a print object for the formatted output of a complex value.
For a full description of the of the
Definition at line 820 of file CTBcomplex.icc. |
|
Definition at line 90 of file CTBcomplex.hxx. |
|
Definition at line 91 of file CTBcomplex.hxx. |