Expand description
§neco-complex
neco-complex provides complex scalar types for numerical linear algebra and signal processing. It represents values by private real and imaginary components, and supplies arithmetic, conjugation, norm, and polar-angle operations.
§Public API
Complex<T>: a complex scalar with validated component accessComplex::new(re, im): constructs a complex scalarComplex::real: observes the real component by referenceComplex::imaginary: observes the imaginary component by referenceComplex::real_value: returns the real component valueComplex::imaginary_value: returns the imaginary component valueComplex::set_real: replaces the real componentComplex::set_imaginary: replaces the imaginary componentComplex::conjugate: returns the conjugate scalarComplex::norm_squared: returns the squared magnitudeComplex<f64>::from_real: embeds a real scalarComplex<f32>::argument: returns the polar angle in thestdconfigurationComplex<f64>::argument: returns the polar angle in thestdconfigurationComplex<f64>::norm: returns the Euclidean magnitude in thestdconfiguration
§Runtime configuration
The default configuration uses the standard library. Disabling default features selects core without allocation.
§License
MIT License.