![]() |
SH4ZAM! 0.1.0
Fast math library for the Sega Dreamcast's SH4 CPU
|
#include <shz_complex.hpp>


Public Member Functions | |
Constructors | |
Members for initializing and constructing. | |
| complex () noexcept=default | |
| complex (const complex &rhs) noexcept=default | |
| complex (float re, float im=0.0f) noexcept | |
| complex (const shz_complex_t &cplx) noexcept | |
| complex (const volatile shz_complex_t &cplx) noexcept | |
Member Operators | |
Overloaded operators defined as member functions. | |
| complex & | operator= (const complex &rhs) noexcept=default |
| complex & | operator= (const shz_complex_t &rhs) noexcept |
| volatile complex & | operator= (volatile shz_complex_t rhs) volatile noexcept |
| complex & | operator+= (shz_complex_t rhs) noexcept |
| complex & | operator-= (shz_complex_t rhs) noexcept |
| complex & | operator*= (shz_complex_t rhs) noexcept |
| complex & | operator*= (float scale) noexcept |
| complex & | operator/= (shz_complex_t rhs) noexcept |
Additional Inherited Members | |
Data Fields inherited from shz_complex_t | |
| float | real |
| float | imag |
C++ wrapper around a floating-point complex number, real/imaginary pair.
Definition at line 28 of file shz_complex.hpp.
|
defaultnoexcept |
Default constructor.
|
defaultnoexcept |
Default copy constructor.
|
inlinenoexcept |
Value constructor, sets the imaginary component to 0 if none is supplied.
Definition at line 42 of file shz_complex.hpp.
|
inlinenoexcept |
Converting constructor for initializing from the C base type.
Definition at line 46 of file shz_complex.hpp.
|
inlinenoexcept |
Converting constructor for initialization from a volatile value type.
Definition at line 50 of file shz_complex.hpp.
Defaulted assignment operator.
|
inlinenoexcept |
|
inlinenoexcept |
Overloaded assignment operator for assigning from a volatile C base type.
Definition at line 72 of file shz_complex.hpp.
|
inlinenoexcept |
Adds and accumulates rhs onto the given complex number.
Definition at line 80 of file shz_complex.hpp.
|
inlinenoexcept |
Subtracts rhs from the given complex number, assigning it to the result.
Definition at line 85 of file shz_complex.hpp.
|
inlinenoexcept |
Multiplies and accumulates rhs by the given complex number.
Definition at line 90 of file shz_complex.hpp.
|
inlinenoexcept |
Multiplies and accumulates the given complex number by scalar.
Definition at line 95 of file shz_complex.hpp.
|
inlinenoexcept |
Divides the given complex number by rhs, assigning it to the result.
Definition at line 100 of file shz_complex.hpp.