|
TBCI Numerical high perf. C++ Library 2.8.0
|
Rich implementation of complex numbers TBCI::cplx. More...

Go to the source code of this file.
Classes | |
| class | cplx< T > |
| Our own complex class. More... | |
Macros | |
| #define | CPLX(t) |
| #define | CPLXR(t, a, r) |
| #define | CPLXRI(t, a, r, i) |
| #define | CPLXC(t, a, c) |
| #define | CPLXVRI(t, r, i) |
Functions | |
| template<typename T> | |
| NAMESPACE_END NAMESPACE_CSTD TBCI__ cplx< T > | sqrt (const TBCI__ cplx< T > &z) |
| template<typename T> | |
| cplx< T > | dot (const cplx< T > &a, const cplx< T > &b) |
| template<typename T> | |
| cplx< T > | operator+ (const T a, const cplx< T > &b) |
| template<typename T> | |
| cplx< T > | operator- (const T a, const cplx< T > &b) |
| template<typename T> | |
| cplx< T > | operator* (const T a, const cplx< T > &b) |
| template<typename T> | |
| cplx< T > | operator/ (const T a, const cplx< T > &b) |
| template<typename T> | |
| double | fabssqr (const cplx< T > &c) |
| template<typename T> | |
| cplx< T > | sqr (const cplx< T > &c) |
| template<typename T> | |
| cplx< T > | expi (const T phi) |
| template<typename T> | |
| STD__ ostream & | operator<< (STD__ ostream &os, const cplx< T > &c) |
| template<typename T> | |
| STD__ istream & | operator>> (STD__ istream &in, cplx< T > &c) |
| template<typename T> | |
| NAMESPACE_END NAMESPACE_CPLX TBCI__ cplx< T > | conj (const TBCI__ cplx< T > &c) |
| template<typename T> | |
| T | real (const TBCI__ cplx< T > &z) |
| template<typename T> | |
| T | imag (const TBCI__ cplx< T > &z) |
| template<typename T> | |
| T & | real (TBCI__ cplx< T > &z) |
| template<typename T> | |
| T & | imag (TBCI__ cplx< T > &z) |
| template<typename T> | |
| T | arg (const TBCI__ cplx< T > &c) |
| template<typename T> | |
| double | norm (const TBCI__ cplx< T > &c) |
| template<typename T> | |
| NAMESPACE_CPLX_END NAMESPACE_TBCI TBCI__ cplx< T > | polar (const T &r, const T &p) |
| template<typename T> | |
| NAMESPACE_END NAMESPACE_CSTD T | abs (const TBCI__ cplx< T > &c) |
| template<typename T> | |
| double | fabs (const TBCI__ cplx< T > &c) |
| template<typename T> | |
| TBCI__ cplx< T > | sqrt (const TBCI__ cplx< T > &z) |
| template<typename T> | |
| TBCI__ cplx< T > | exp (const TBCI__ cplx< T > &z) |
| template<typename T> | |
| TBCI__ cplx< T > | pow (const TBCI__ cplx< T > &z, const double n) |
| template<typename T> | |
| TBCI__ cplx< T > | pow (const TBCI__ cplx< T > &z, const TBCI__ cplx< T > &x) |
| template<typename T> | |
| TBCI__ cplx< T > | log (const TBCI__ cplx< T > &z) |
| template<typename T> | |
| TBCI__ cplx< T > | sin (const TBCI__ cplx< T > &z) |
| template<typename T> | |
| TBCI__ cplx< T > | sinh (const TBCI__ cplx< T > &z) |
| template<typename T> | |
| TBCI__ cplx< T > | cos (const TBCI__ cplx< T > &z) |
| template<typename T> | |
| TBCI__ cplx< T > | cosh (const TBCI__ cplx< T > &z) |
| template<typename T> | |
| TBCI__ cplx< T > | tan (const TBCI__ cplx< T > &z) |
| template<typename T> | |
| TBCI__ cplx< T > | tanh (const TBCI__ cplx< T > &z) |
| template<typename T> | |
| TBCI__ cplx< T > | asin (const TBCI__ cplx< T > &z) |
| template<typename T> | |
| TBCI__ cplx< T > | asinh (const TBCI__ cplx< T > &z) |
| template<typename T> | |
| TBCI__ cplx< T > | acos (const TBCI__ cplx< T > &z) |
| template<typename T> | |
| TBCI__ cplx< T > | acosh (const TBCI__ cplx< T > &z) |
| template<typename T> | |
| TBCI__ cplx< T > | atan (const TBCI__ cplx< T > &z) |
| template<typename T> | |
| TBCI__ cplx< T > | atanh (const TBCI__ cplx< T > &z) |
| template<typename T> | |
| TBCI__ cplx< T > | log10 (const TBCI__ cplx< T > &z) |
| NAMESPACE_CSTD_END NAMESPACE_TBCI | SPEC_TBCI_TRAITS_LOOP_COPY (TBCI__ cplx< float >) |
| SPEC_TBCI_TRAITS_LOOP_COPY (TBCI__ cplx< double >) | |
| SPEC_TBCI_TRAITS_ALWAYS_COPY (TBCI__ cplx< float > *) | |
| SPEC_TBCI_TRAITS_ALWAYS_COPY (TBCI__ cplx< double > *) | |
Rich implementation of complex numbers TBCI::cplx.
Definition in file cplx.h.
| #define CPLX | ( | t | ) |
|
inline |
Definition at line 690 of file cplx.h.
References arg(), c, T, and TBCI__.
Referenced by cplx< T >::acos(), cplx< T >::acosh(), arg(), cplx< T >::asin(), cplx< T >::asinh(), cplx< T >::atan(), cplx< T >::atanh(), std::conj(), std::conj(), std::conj(), std::conj(), std::conj(), std::conj(), std::conj(), gamma(), gamma(), zacai_(), zacon_(), zasyi_(), zbesh_(), zbesi_(), zbesj_(), zbesk_(), and zrati_().
|
inline |
Definition at line 786 of file cplx.h.
Referenced by besselj(), besselj(), bessely(), bessely(), cos(), expi(), zacai_(), zacon_(), zasyi_(), zbesh_(), zbesi_(), zbesj_(), zbesy_(), zbknu_(), zexp_(), zkscl_(), zseri_(), zshch_(), zsqrt_(), zunhj_(), zuni1_(), zuni2_(), zunk1_(), zunk2_(), zuoik_(), and zwrsk_().
Definition at line 300 of file cplx.h.
References a, b, and cplx< T >::cplx.
Referenced by BiCGSTAB(), CG(), CGS(), dot(), and cplx< T >::FGD.
Definition at line 756 of file cplx.h.
Referenced by bernoulli(), besselh1(), besselh1(), besselh2(), besselh2(), chi_s(), cplx< T >::cos(), cplx< T >::cosh(), erfc3(), cplx< T >::exp(), exp(), poisson(), cplx< T >::power(), cplx< T >::sin(), cplx< T >::sinh(), zbesy_(), zbknu_(), zexp_(), zkscl_(), zmlri_(), zseri_(), zuni1_(), zuni2_(), zunk1_(), zunk2_(), and zuoik_().
Definition at line 460 of file cplx.h.
References ALIGN, cos(), cplx< T >::cplx, expi(), MATH__, MIN_ALIGN, pi, REGISTER, sin(), and T.
Referenced by cplx< T >::exp(), expi(), polar(), cplx< T >::power(), cplx< T >::power(), and cplx< T >::sqrt().
Definition at line 746 of file cplx.h.
References c, fabs(), and TBCI__.
Referenced by asinh(), BdMatrix< T >::autoinsert(), bernoulli(), besselh1(), besselh1(), besselh2(), besselh2(), besseli(), besseli(), besselj(), besselj(), besselk(), besselk(), bessely(), bessely(), BiCGSTAB(), expm3(), cplx< T >::fabs(), fabs(), fabs(), fabs(), fabs(), fabs(), fabs(), fabs(), fabs(), fabs(), fabs(), fabs(), fabs(), CSCMatrix< T >::fill(), fix_condition(), gaussj(), cplx< T >::ln(), lu_decomp(), lu_decomp(), lu_solve(), lu_solve(), norm_1(), norm_1(), BdMatrix< T >::operator==(), cplx< T >::power(), cplx< T >::power(), cplx< T >::sqrt(), sv_decomp(), and sv_decomp_pythag().
Definition at line 390 of file cplx.h.
References c.
Referenced by BiCGSTAB(), F_Matrix< T >::fabs(), F_TSMatrix< T >::fabs(), fabs(), fabs(), fabssqr(), fabssqr(), fabssqr(), fabssqr(), fabssqr(), and QMR().
Definition at line 771 of file cplx.h.
Referenced by arydiv_(), asinh(), basis_trafo(), cgamma_(), conhyp_(), dgamln_(), cplx< T >::ln(), log(), log10(), cplx< T >::power(), zairy_(), zbesh_(), zbesk_(), zbknu_(), zkscl_(), zlog_(), zs1s2_(), zunhj_(), zuni1_(), zuni2_(), zunik_(), zunk1_(), zunk2_(), and zuoik_().
Definition at line 695 of file cplx.h.
References c, norm(), and TBCI__.
Referenced by TVector< T >::BdMatrix< T >, norm(), operator/(), operator/(), and Vector< T >::operator/().
|
inline |
Definition at line 776 of file cplx.h.
Referenced by besseli(), besseli(), besselj(), besselj(), bessely(), bessely(), conhyp_(), expi(), sin(), zacai_(), zacon_(), zasyi_(), zbesh_(), zbesi_(), zbesj_(), zbesy_(), zbknu_(), zexp_(), zkscl_(), zseri_(), zshch_(), zsqrt_(), zunhj_(), zuni1_(), zuni2_(), zunk1_(), zunk2_(), zuoik_(), and zwrsk_().
References NAMESPACE_END, and TBCI__.
| NAMESPACE_CSTD_END NAMESPACE_TBCI SPEC_TBCI_TRAITS_LOOP_COPY | ( | TBCI__ cplx< float > | ) |
References TBCI__.
Definition at line 449 of file cplx.h.
References c, cplx< T >::cplx, cplx< T >::im, REGISTER, sqr(), and T.
Referenced by cplx< T >::acos(), cplx< T >::acosh(), cplx< T >::asin(), cplx< T >::asinh(), BiCG(), BiCGSTAB(), CGS(), QMR(), and sqr().
Definition at line 751 of file cplx.h.
References sqrt(), and TBCI__.
Referenced by cplx< T >::abs(), FS_Vector< dims, T >::abs(), Vector< T >::abs(), cplx< T >::acos(), cplx< T >::acosh(), cplx< T >::asin(), asinh(), cplx< T >::asinh(), basis_trafo(), BiCG(), BiCGSTAB(), CGS(), erfc3(), cplx< T >::fabs(), F_Matrix< T >::fabs(), F_TSMatrix< T >::fabs(), fabs(), fabs(), FS_Vector< dims, T >::fabs(), Matrix< T >::fabs(), TMatrix< T >::fabs(), TSMatrix< T >::fabs(), Vector< T >::fabs(), fact(), myzabs_(), own_ew_(), QMR(), cplx< T >::sqrt(), sqrt(), sv_decomp(), sv_decomp_pythag(), zairy_(), zasyi_(), zbesh_(), zbesi_(), zbesj_(), zbesk_(), zbknu_(), zmlri_(), zrati_(), zseri_(), zsqrt_(), and zunhj_().
|
inline |
Definition at line 751 of file cplx.h.
References sqrt(), and TBCI__.
Referenced by cplx< T >::abs(), FS_Vector< dims, T >::abs(), Vector< T >::abs(), cplx< T >::acos(), cplx< T >::acosh(), cplx< T >::asin(), asinh(), cplx< T >::asinh(), basis_trafo(), BiCG(), BiCGSTAB(), CGS(), erfc3(), cplx< T >::fabs(), F_Matrix< T >::fabs(), F_TSMatrix< T >::fabs(), fabs(), fabs(), FS_Vector< dims, T >::fabs(), Matrix< T >::fabs(), TMatrix< T >::fabs(), TSMatrix< T >::fabs(), Vector< T >::fabs(), fact(), myzabs_(), own_ew_(), QMR(), cplx< T >::sqrt(), sqrt(), sv_decomp(), sv_decomp_pythag(), zairy_(), zasyi_(), zbesh_(), zbesi_(), zbesj_(), zbesk_(), zbknu_(), zmlri_(), zrati_(), zseri_(), zsqrt_(), and zunhj_().