|
| mpcomplex | at (Precision p) const |
| |
| void | copy_to (mpc_ptr destination) const |
| | Round into an initialized MPC destination at its existing component precisions.
|
| |
| mpreal | imag () const |
| |
| void | imag (mpreal const &im) |
| |
| bool | initialized () const noexcept |
| | Whether this object holds exact or approximate numerical components.
|
| |
| bool | is_exact () const noexcept |
| | Whether both components are exact rationals.
|
| |
| | mpcomplex () |
| | Construct exact complex zero.
|
| |
| | mpcomplex (decimal_literal value) |
| |
| | mpcomplex (decimal_literal value, Precision p) |
| |
| | mpcomplex (exact_rational const &value) |
| |
| | mpcomplex (exact_rational const &value, Precision p) |
| |
template<std::integral I>
requires (!std::same_as<I, bool>) |
| | mpcomplex (I value) |
| |
template<std::integral I>
requires (!std::same_as<I, bool>) |
| | mpcomplex (I value, Precision p) |
| |
| | mpcomplex (mpc_srcptr value, Precision p) |
| | Copy a valid borrowed MPC value at finite component precision.
|
| |
| | mpcomplex (mpcomplex &&other) noexcept |
| | Transfer ownership, leaving the source unset.
|
| |
| | mpcomplex (mpcomplex const &)=default |
| |
| | mpcomplex (mpcomplex const &other, Precision p) |
| |
| | mpcomplex (mpreal const &re) |
| |
| | mpcomplex (mpreal const &re, mpreal const &im) |
| |
| | mpcomplex (mpreal const &re, mpreal const &im, Precision p) |
| | Construct components at explicit precision, or retain two exact components.
|
| |
| | mpcomplex (mpreal const &re, Precision p) |
| |
| | mpcomplex (Precision p) |
| |
| | mpcomplex (std::string_view re, std::string_view im, Precision p) |
| |
| | mpcomplex (uninitialized_t) noexcept |
| | Construct an unset placeholder for overwrite storage.
|
| |
| mpc_srcptr | native_handle () const |
| | Borrow an approximate MPC value; exact and unset states reject native access.
|
| |
| mpcomplex & | operator*= (exact_rational const &rhs) |
| |
| mpcomplex & | operator*= (mpcomplex const &rhs) |
| |
| mpcomplex & | operator+= (exact_rational const &rhs) |
| |
| mpcomplex & | operator+= (mpcomplex const &rhs) |
| |
| mpcomplex & | operator-= (exact_rational const &rhs) |
| |
| mpcomplex & | operator-= (mpcomplex const &rhs) |
| |
| mpcomplex & | operator/= (exact_rational const &rhs) |
| |
| mpcomplex & | operator/= (mpcomplex const &rhs) |
| |
| mpcomplex & | operator= (mpcomplex other) noexcept |
| |
| Precision | precision () const |
| |
| mpreal | real () const |
| | Return an owning component with the same exact/approximate state.
|
| |
| void | real (mpreal const &re) |
| | Replace a component, preserving finite precision or adopting the first approximate component's precision.
|
| |
| void | swap (mpcomplex &other) noexcept |
| |
Exact rational complex value or owning finite-precision MPC approximation.
Both components are exact, or both have the same finite precision. An exact component combined with an approximate component converts at that component's precision. Arithmetic is eager; finite operations round to nearest, ties to even. Default construction is exact zero.