|
TBCI Numerical high perf. C++ Library 2.8.0
|
Our own complex class. More...
#include <cplx.h>
Public Types | |
| typedef T | value_type |
| typedef T aligned_value_type | TALIGN(MIN_ALIGN) |
| typedef T | cplx_base |
| typedef cplx< T > | cplx_t |
Public Member Functions | |
| cplx () | |
| cplx (const T r, const T i=(T) 0) | |
| cplx (const cplx< T > &c) | |
| template<typename U> | |
| cplx (const cplx< U > &c) | |
| ~cplx () | |
| cplx< T > & | operator= (const T r) |
| cplx< T > & | operator= (const cplx< T > &c) |
| cplx< T > & | operator+= (const T) |
| cplx< T > & | operator+= (const cplx< T > &) |
| cplx< T > & | operator-= (const T) |
| cplx< T > & | operator-= (const cplx< T > &) |
| cplx< T > & | operator*= (const T) |
| cplx< T > & | operator*= (const cplx< T > &) |
| cplx< T > & | operator/= (const T) |
| cplx< T > & | operator/= (const cplx< T > &) |
| cplx< T > & | set (const T r, const T i) |
| T | real () const |
| T | imag () const |
| T & | real () |
| T & | imag () |
| cplx< T > | operator+ (const cplx< T > &) const |
| cplx< T > | operator- (const cplx< T > &) const |
| cplx< T > | operator* (const cplx< T > &) const |
| cplx< T > | operator/ (const cplx< T > &) const |
| cplx< T > | plus (const T v) const |
| cplx< T > | minus (const T v) const |
| cplx< T > | mult (const T v) const |
| cplx< T > | div (const T a) const |
| cplx< T > | operator+ (const T) const |
| cplx< T > | operator- (const T) const |
| cplx< T > | operator* (const T) const |
| cplx< T > | operator/ (const T) const |
| cplx< T > | operator- () const |
| cplx< T > | operator~ () const |
| T | theta () const |
| cplx< T > | conj () const |
| cplx< T > & | do_conj () |
| double | fabssqr () const |
| double | fabs () const |
| double | norm () const |
| T | abs () const |
| cplx< T > | exp () const |
| cplx< T > | sqrt () const |
| cplx< T > | power (const double) const |
| cplx< T > | power (const cplx< T > &) const |
| cplx< T > | ln () const |
| cplx< T > | sin () const |
| cplx< T > | cos () const |
| cplx< T > | sinh () const |
| cplx< T > | cosh () const |
| cplx< T > | asin () const |
| cplx< T > | acos () const |
| cplx< T > | atan () const |
| cplx< T > | asinh () const |
| cplx< T > | acosh () const |
| cplx< T > | atanh () const |
| bool | operator== (const cplx< T > &c) const |
| bool | operator!= (const cplx< T > &c) const |
| bool | operator> (const cplx< T > &c) const |
| bool | operator>= (const cplx< T > &c) const |
| bool | operator< (const cplx< T > &c) const |
| bool | operator<= (const cplx< T > &c) const |
Protected Member Functions | |
| T re | ALIGN (MIN_ALIGN) |
Protected Attributes | |
| T re | im |
Friends | |
| template<typename U> | |
| class | cplx |
| cplx< T > dot | FGD (const cplx< T > &, const cplx< T > &) |
| STD__ ostream & | operator<<FGD (STD__ ostream &, const cplx< T > &) |
| STD__ istream & | operator>>FGD (STD__ istream &, cplx< T > &) |
Definition at line 164 of file cplx.h.
References im.
Referenced by norm(), operator<(), operator<=(), operator>(), and operator>=().
|
inline |
Definition at line 106 of file cplx.h.
References T.
Referenced by besselh1(), besselh2(), besseli(), besselj(), besselk(), bessely(), and gamma().
Definition at line 78 of file cplx.h.
References cplx.
Referenced by acos(), acosh(), asin(), asinh(), atan(), atanh(), conj(), cos(), cosh(), cplx(), cplx, cplx(), div(), do_conj(), dot(), exp(), expi(), FGD, ln(), minus(), mult(), operator!=(), operator*(), operator*(), operator*=(), operator*=(), operator+(), operator+(), operator+=(), operator+=(), operator-(), operator-(), operator-(), operator-=(), operator-=(), operator/(), operator/(), operator/=(), operator/=(), operator<(), operator<<FGD, operator<=(), operator=(), operator=(), operator==(), operator>(), operator>=(), operator>>FGD, operator~(), plus(), power(), power(), set(), sin(), sinh(), sqr(), and sqrt().
Definition at line 61 of file cplx.h.
Referenced by abs(), ALIGN(), asin(), atan(), conj(), cos(), cplx(), cplx(), cplx(), div(), do_conj(), fabs(), fabssqr(), imag(), imag(), minus(), mult(), operator!=(), operator*(), operator*(), operator*=(), operator*=(), operator+(), operator+(), operator+=(), operator-(), operator-(), operator-(), operator-=(), operator/(), operator/(), operator/=(), operator/=(), operator=(), operator=(), operator==(), operator~(), plus(), power(), set(), sin(), sqr(), and theta().