|
Blaze 3.9
|
Proxy backend for complex types. More...
#include <ComplexProxy.h>
Public Types | |
| using | value_type = typename CT::value_type |
| Value type of the represented complex element. | |
| using | ValueType = value_type |
| Value type of the represented complex element. | |
Public Member Functions | |
Data access functions | |
| ValueType | real () const |
| Returns the real part of the represented complex number. | |
| void | real (ValueType value) const |
| Setting the real part of the represented complex number. | |
| ValueType | imag () const |
| Returns the imaginary part of the represented complex number. | |
| void | imag (ValueType value) const |
| Setting the imaginary part of the represented complex number. | |
Conversion operators | |
| BLAZE_ALWAYS_INLINE PT & | operator~ () noexcept |
| Conversion operator for non-constant proxies. | |
| BLAZE_ALWAYS_INLINE const PT & | operator~ () const noexcept |
| Conversion operator for constant proxies. | |
| BLAZE_ALWAYS_INLINE PT & | operator* () noexcept |
| Conversion operator for non-constant proxies. | |
| BLAZE_ALWAYS_INLINE const PT & | operator* () const noexcept |
| Conversion operator for constant proxies. | |
Proxy backend for complex types.
The ComplexProxy class serves as a backend for the Proxy class. It is used in case the data type represented by the proxy is a complex number and augments the Proxy interface by the complete interface required of complex numbers.
|
inline |
Returns the imaginary part of the represented complex number.
This function returns the current value of the imaginary part of the represented complex number.
|
inline |
Setting the imaginary part of the represented complex number.
| value | The new value for the imaginary part. |
This function sets a new value to the imaginary part of the represented complex number.
|
noexcept |
Conversion operator for constant proxies.
This operator performs the CRTP-based type-safe downcast to the actual type PT of the proxy. It will return a constant reference to the actual type PT.
|
noexcept |
Conversion operator for non-constant proxies.
This operator performs the CRTP-based type-safe downcast to the actual type PT of the proxy. It will return a mutable reference to the actual type PT.
|
noexcept |
Conversion operator for constant proxies.
This operator performs the CRTP-based type-safe downcast to the actual type PT of the proxy. It will return a constant reference to the actual type PT.
|
noexcept |
Conversion operator for non-constant proxies.
This operator performs the CRTP-based type-safe downcast to the actual type PT of the proxy. It will return a mutable reference to the actual type PT.
|
inline |
Returns the real part of the represented complex number.
This function returns the current value of the real part of the represented complex number.
|
inline |
Setting the real part of the represented complex number.
| value | The new value for the real part. |
This function sets a new value to the real part of the represented complex number.