Skip to main content

Complex64

Type Alias Complex64 

Source
pub type Complex64 = Complex<f64>;
Expand description

Single 64-bit complex number — pair of f64 (real, imaginary).

Layout matches the C ABI _Complex double and the WXF ComplexReal64 element wire format. wolfram-library-link-sys::mcomplex is pub use’d as an alias for this type, so wll::NumericArray<sys::mcomplex> and wll::NumericArray<wolfram_expr::Complex64> are the same instantiation.

Aliased Type§

#[repr(C)]
pub struct Complex64 { pub re: f64, pub im: f64, }

Fields§

§re: f64

Real part.

§im: f64

Imaginary part.

Trait Implementations§

Source§

impl NumericTarget for Complex64

Source§

const TARGET: DT = DT::ComplexReal64

The wire type this target maps to on the canonical (no-widening) path.
Source§

fn widen_from(src: DT, bytes: &[u8]) -> Result<Vec<Self>, String>

Build a Vec<Self> from a source data-type tag plus raw little-endian bytes. Returns Err(message) when the source can’t widen losslessly into Self (truncation, signedness change, precision loss).