![]() |
Quartic roots
Utilities for C++ programming
|
Lightweight complex number type used by the standard-precision solvers. More...
#include <PolynomialRoots-complex.hxx>
Public Member Functions | |
| real_type const & | real () const |
| Return the real part. | |
| real_type const & | imag () const |
| Return the imaginary part. | |
| real_complex ()=default | |
| Build the zero complex number. | |
| real_complex (real_type real_part, real_type imag_part=0) | |
| Build a complex number from real and imaginary parts. | |
| real_complex & | operator+= (real_type rhs) |
| Add a real scalar in place. | |
| real_complex & | operator+= (real_complex const &rhs) |
| Add a complex number in place. | |
| real_complex & | operator-= (real_type rhs) |
| Subtract a real scalar in place. | |
| real_complex & | operator-= (real_complex const &rhs) |
| Subtract a complex number in place. | |
| real_complex & | operator*= (real_type rhs) |
| Multiply by a real scalar in place. | |
| real_complex & | operator*= (real_complex const &rhs) |
| Multiply by a complex number in place. | |
| real_complex & | operator/= (real_type rhs) |
| Divide by a real scalar in place. | |
| real_complex & | operator/= (real_complex const &rhs) |
| Divide by a complex number in place using a scaled algorithm. | |
Static Public Member Functions | |
| static real_type | abs_real (real_type x) |
| Return the absolute value of a real scalar. | |
Lightweight complex number type used by the standard-precision solvers.
|
default |
Build the zero complex number.
Build a complex number from real and imaginary parts.
Return the absolute value of a real scalar.
|
inline |
Return the imaginary part.
|
inline |
Multiply by a complex number in place.
|
inline |
Multiply by a real scalar in place.
|
inline |
Add a complex number in place.
|
inline |
Add a real scalar in place.
|
inline |
Subtract a complex number in place.
|
inline |
Subtract a real scalar in place.
|
inline |
Divide by a complex number in place using a scaled algorithm.
|
inline |
Divide by a real scalar in place.
|
inline |
Return the real part.