|
TRIQS/TRIQS 4.0.0
Researching Interacting Quantum Systems
|
#include <triqs/utility/pade_approximants.hpp>
Lightweight complex number backed by GMP mpf_class floats, used during Padé coefficient computation.
Definition at line 49 of file pade_approximants.hpp.
Public Member Functions | |
| mpf_class | norm () const |
| Squared magnitude of the complex number \( z \). | |
| gmp_complex | operator* (const gmp_complex &z) const |
| Multiply two complex numbers. | |
| gmp_complex | operator+ (const gmp_complex &z) const |
| Add two complex numbers. | |
| gmp_complex | operator- (const gmp_complex &z) const |
| Subtract two complex numbers. | |
| gmp_complex | operator/ (const gmp_complex &z) const |
| Divide two complex numbers. | |
| gmp_complex & | operator= (const std::complex< double > &z) |
| Assign from a regular std::complex<double>. | |
Public Attributes | |
| mpf_class | im |
| Imaginary part. | |
| mpf_class | re |
| Real part. | |
Friends | |
| mpf_class | imag (const gmp_complex &z) |
| Extract the imaginary part of a complex number. | |
| gmp_complex | inverse (const gmp_complex &z) |
| Compute the multiplicative inverse of a complex number. | |
| std::ostream & | operator<< (std::ostream &out, gmp_complex const &z) |
| Write a gmp_complex to an output stream. | |
| mpf_class | real (const gmp_complex &z) |
| Extract the real part of a complex number. | |
|
inlinenodiscard |
Squared magnitude of the complex number \( z \).
Definition at line 124 of file pade_approximants.hpp.
|
inline |
Multiply two complex numbers.
| z | Right-hand operand. |
Definition at line 62 of file pade_approximants.hpp.
|
inline |
Add two complex numbers.
| z | Right-hand operand. |
Definition at line 94 of file pade_approximants.hpp.
|
inline |
Subtract two complex numbers.
| z | Right-hand operand (subtrahend). |
Definition at line 102 of file pade_approximants.hpp.
|
inline |
Divide two complex numbers.
It throws a triqs::runtime_error on division by zero.
| z | Right-hand operand (divisor). |
Definition at line 86 of file pade_approximants.hpp.
|
inline |
Assign from a regular std::complex<double>.
| z | Value to assign from. |
Definition at line 132 of file pade_approximants.hpp.
|
friend |
Extract the imaginary part of a complex number.
| z | Number \( z \) to inspect. |
Definition at line 118 of file pade_approximants.hpp.
|
friend |
Compute the multiplicative inverse of a complex number.
It throws a triqs::runtime_error on division by zero.
| z | Complex number \( z \) to invert. |
Definition at line 72 of file pade_approximants.hpp.
|
friend |
Write a gmp_complex to an output stream.
| out | Output stream to write to. |
| z | Complex number to print. |
Definition at line 145 of file pade_approximants.hpp.
|
friend |
Extract the real part of a complex number.
| z | Number \( z \) to inspect. |
Definition at line 110 of file pade_approximants.hpp.