Skip to main content

Complex32

Type Alias Complex32 

Source
pub type Complex32 = Complex<f32>;
Expand description

Single 32-bit complex number — pair of f32 (real, imaginary). Layout matches the WXF ComplexReal32 element wire format. No _Complex float typedef exists in WolframLibrary.h, so this type is wolfram-expr-only.

Aliased Type§

#[repr(C)]
pub struct Complex32 { pub re: f32, pub im: f32, }

Fields§

§re: f32

Real part.

§im: f32

Imaginary part.

Trait Implementations§

Source§

impl NumericTarget for Complex32

Source§

const TARGET: DT = DT::ComplexReal32

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).