neco-complex 0.2.0

complex scalar types for numerical linear algebra
Documentation
  • Coverage
  • 5%
    1 out of 20 items documented0 out of 19 items with examples
  • Size
  • Source code size: 11.49 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 295.86 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 5s Average build duration of successful builds.
  • all releases: 10s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • barineco/neco-algebra
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • barineco

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 access
  • Complex::new(re, im): constructs a complex scalar
  • Complex::real: observes the real component by reference
  • Complex::imaginary: observes the imaginary component by reference
  • Complex::real_value: returns the real component value
  • Complex::imaginary_value: returns the imaginary component value
  • Complex::set_real: replaces the real component
  • Complex::set_imaginary: replaces the imaginary component
  • Complex::conjugate: returns the conjugate scalar
  • Complex::norm_squared: returns the squared magnitude
  • Complex<f64>::from_real: embeds a real scalar
  • Complex<f32>::argument: returns the polar angle in the std configuration
  • Complex<f64>::argument: returns the polar angle in the std configuration
  • Complex<f64>::norm: returns the Euclidean magnitude in the std configuration

Runtime configuration

The default configuration uses the standard library. Disabling default features selects core without allocation.

License

MIT License.