|
| template<typename T > |
| T | abs (const Complex< T > &a) |
| | Return absolute value of Complex number.
|
| |
| template<typename T > |
| T | arg (const Complex< T > &a) |
| | Return argument of Complex number.
|
| |
| template<typename Ntype , typename T > |
| Complex< Ntype > | hila::cast_to (const Complex< T > &m) |
| | Cast to different basic number type.
|
| |
| template<typename T > |
| Complex< T > | conj (const Complex< T > &val) |
| | Return conjugate of Complex number.
|
| |
| template<typename T > |
| Complex< T > | dagger (const Complex< T > &val) |
| | Return dagger of Complex number.
|
| |
| constexpr Imaginary_t< double > | I (1.0) |
| | Imaginary unit I - global variable.
|
| |
| template<typename T > |
| T | imag (const Complex< T > &a) |
| | Retrun imaginary value of Complex number.
|
| |
| template<typename T > |
| std::ostream & | operator<< (std::ostream &strm, const Complex< T > &A) |
| | Print a complex value as (re,im)
|
| |
| template<typename T > |
| Complex< T > | polar (T r, T arg) |
| | Return complex number given by polar representation.
|
| |
| template<typename T > |
| std::string | hila::prettyprint (const Complex< T > &A, int prec=8) |
| | Return well formatted Complex number as std::string.
|
| |
| template<typename T > |
| T | real (const Complex< T > &a) |
| | Return real value of Complex number.
|
| |
| template<typename T > |
| auto | squarenorm (const Complex< T > &val) |
| | Return Squarenorm of Complex number.
|
| |
| template<typename T > |
| std::string | hila::to_string (const Complex< T > &A, int prec=8, char separator=' ') |
| | Return Complex number as std::string.
|
| |
Definition of Complex types.
This file contains definitions and methods for Complex numbers and Imaginary type.
NOTE: All overloads for operators +,-,/,* are not documented separately since there exists a function for each combinations of scalar,imaginary and complex number representations. All versions are documented in the Complex – Complex definitions.
Definition in file cmplx.h.