![]() |
Blaze
3.6
|
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. 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. More... | |
void | real (ValueType value) const |
Setting the real part of the represented complex number. More... | |
ValueType | imag () const |
Returns the imaginary part of the represented complex number. More... | |
void | imag (ValueType value) const |
Setting the imaginary part of the represented complex number. More... | |
Conversion operators | |
BLAZE_ALWAYS_INLINE PT & | operator~ () |
Conversion operator for non-constant proxies. More... | |
BLAZE_ALWAYS_INLINE const PT & | operator~ () const |
Conversion operator for constant proxies. More... | |
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.
BLAZE_ALWAYS_INLINE PT & blaze::ComplexProxy< PT, CT >::operator~ | ( | ) |
Conversion operator for non-constant proxies.
This function provides a type-safe downcast to the actual type of the proxy.
BLAZE_ALWAYS_INLINE const PT & blaze::ComplexProxy< PT, CT >::operator~ | ( | ) | const |
Conversion operator for constant proxies.
This function provides a type-safe downcast to the actual type of the proxy.
|
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.