|
HILA
|
User guide for custom HILA Complex class
The Complex class is a general representation of a Complex number where the real and imaginary components are store in Complex::re and Complex::im.
NOTE: Construction and assignment is possible only when the assignable values type is compatible with the type S of the Complex<S> variable.
The multiple ways of constructing, assigning and accessing a Complex object can be viewed on the Object documentation page
A simple example of constructing a Complex object is as follows:
Accessing the real and complex components of a Complex type can be done by either accessing the components directly
or by using the std like accessors
The arithmetic methods and arithmetic assignment methods hold allot of overloads depending on specific objects they are called for. All cases are documented and should be listed in order on the class page. These can be seen by following the links below.
The following standard arithmetic methods are defined in the usual way for Complex numbers.
Complex::absComplex::argComplex::conjComplex::daggerComplex::polarComplex::squarenormComplex::acosComplex::acoshComplex::asinComplex::asinhComplex::atanComplex::atanhComplex::cbrtComplex::cosComplex::coshComplex::expComplex::expiComplex::logComplex::powComplex::sinComplex::sinhComplex::sqrtComplex::tanComplex::tanhThere are two random number generators available for the Complex type.
Uniform distribution:
Gaussian distribution:
More detailed description on the functionality for both functions can be read on the Class page.