|
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 411 of file cplx.h.
References abs, CSTD__, GLBL__, cplx< T >::im, MATH__, std::sqrt(), and UNLIKELY.
Definition at line 532 of file cplx.h.
References arg(), GLBL__, cplx< T >::ln(), MATH__, sqr(), and std::sqrt().
Definition at line 546 of file cplx.h.
References arg(), GLBL__, cplx< T >::ln(), MATH__, sqr(), and std::sqrt().
Referenced by cplx< T >::div().
Definition at line 525 of file cplx.h.
References arg(), GLBL__, cplx< T >::im, cplx< T >::ln(), MATH__, sqr(), and std::sqrt().
Definition at line 539 of file cplx.h.
References arg(), GLBL__, cplx< T >::ln(), MATH__, sqr(), and std::sqrt().
Definition at line 553 of file cplx.h.
References arg(), cplx< T >::im, and cplx< T >::ln().
Definition at line 560 of file cplx.h.
References arg(), and cplx< T >::ln().
Definition at line 158 of file cplx.h.
References cplx< T >::im.
Definition at line 506 of file cplx.h.
References cplx< T >::exp(), exp(), and cplx< T >::im.
Definition at line 137 of file cplx.h.
References cplx< T >::ALIGN(), cplx< T >::im, MIN_ALIGN, REGISTER, and T.
Referenced by operator/().
Definition at line 162 of file cplx.h.
References cplx< T >::im.
Definition at line 473 of file cplx.h.
References exp(), expi(), GLBL__, std::imag(), MATH__, real, and TBCI__.
Referenced by cplx< T >::cos(), and cplx< T >::sin().
Definition at line 395 of file cplx.h.
References std::fabs(), GLBL__, cplx< T >::im, MATH__, std::sqrt(), and UNLIKELY.
Definition at line 164 of file cplx.h.
References cplx< T >::im.
Referenced by fabssqr(), cplx< T >::norm(), cplx< T >::operator<(), cplx< T >::operator<=(), cplx< T >::operator>(), and cplx< T >::operator>=().
Definition at line 107 of file cplx.h.
References cplx< T >::im.
Referenced by besselh1(), besselh2(), besseli(), besselj(), besselk(), bessely(), gamma(), HypergeometricU(), and sqr().
Definition at line 110 of file cplx.h.
References cplx< T >::im.
Definition at line 493 of file cplx.h.
References std::fabs(), GLBL__, log(), MATH__, and cplx< T >::theta().
Referenced by cplx< T >::acos(), cplx< T >::acosh(), cplx< T >::asin(), cplx< T >::asinh(), cplx< T >::atan(), and cplx< T >::atanh().
Definition at line 166 of file cplx.h.
References cplx< T >::fabssqr().
Definition at line 190 of file cplx.h.
References cplx< T >::im.
Definition at line 294 of file cplx.h.
References cplx< T >::im.
Definition at line 361 of file cplx.h.
References b, and cplx< T >::im.
Definition at line 245 of file cplx.h.
References a, and cplx< T >::im.
Definition at line 280 of file cplx.h.
References cplx< T >::im.
Definition at line 347 of file cplx.h.
References b, and cplx< T >::im.
|
inline |
Definition at line 225 of file cplx.h.
References cplx< T >::im.
Definition at line 287 of file cplx.h.
References cplx< T >::im.
Definition at line 354 of file cplx.h.
References b, and cplx< T >::im.
Definition at line 375 of file cplx.h.
References cplx< T >::im.
Definition at line 238 of file cplx.h.
References cplx< T >::im.
Definition at line 368 of file cplx.h.
References b, and cplx< T >::im.
Definition at line 262 of file cplx.h.
References a, and cplx< T >::im.
Definition at line 194 of file cplx.h.
References c, and cplx< T >::fabssqr().
Definition at line 195 of file cplx.h.
References c, and cplx< T >::fabssqr().
Definition at line 89 of file cplx.h.
References cplx< T >::im, and T.
Definition at line 90 of file cplx.h.
References cplx< T >::im.
Definition at line 189 of file cplx.h.
References cplx< T >::im.
Definition at line 192 of file cplx.h.
References cplx< T >::fabssqr().
Definition at line 193 of file cplx.h.
References cplx< T >::fabssqr().
Definition at line 382 of file cplx.h.
References cplx< T >::im.
Definition at line 479 of file cplx.h.
References expi(), std::fabs(), GLBL__, MATH__, pow(), TBCI__, and cplx< T >::theta().
Definition at line 485 of file cplx.h.
References exp(), expi(), std::fabs(), GLBL__, cplx< T >::im, log(), MATH__, T, and cplx< T >::theta().
Definition at line 106 of file cplx.h.
Referenced by besselh1(), besselh2(), besseli(), besselj(), besselk(), bessely(), gamma(), HypergeometricU(), and sqr().
Definition at line 104 of file cplx.h.
References i, and cplx< T >::im.
Definition at line 499 of file cplx.h.
References cplx< T >::exp(), exp(), and cplx< T >::im.
Definition at line 467 of file cplx.h.
References expi(), std::fabs(), GLBL__, MATH__, std::sqrt(), TBCI__, and cplx< T >::theta().
Definition at line 427 of file cplx.h.
References atan2(), cplx< T >::im, LIKELY, pi, and UNLIKELY.
Referenced by cplx< T >::ln(), cplx< T >::power(), and cplx< T >::sqrt().
Definition at line 61 of file cplx.h.
Referenced by cplx< T >::abs(), cplx< T >::asin(), cplx< T >::atan(), cplx< T >::conj(), cplx< T >::cos(), cplx< T >::div(), cplx< T >::do_conj(), dot(), cplx< T >::fabs(), cplx< T >::fabssqr(), cplx< T >::imag(), cplx< T >::minus(), cplx< T >::mult(), cplx< T >::operator!=(), cplx< T >::operator*(), cplx< T >::operator*=(), cplx< T >::operator+(), cplx< T >::operator+=(), cplx< T >::operator-(), cplx< T >::operator-=(), cplx< T >::operator/(), cplx< T >::operator/=(), operator<<(), cplx< T >::operator=(), cplx< T >::operator==(), operator>>(), cplx< T >::operator~(), cplx< T >::plus(), cplx< T >::power(), cplx< T >::set(), cplx< T >::sin(), sqr(), and cplx< T >::theta().
1.8.5