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 FromArg<'_> for mcomplex

Source§

unsafe fn from_arg(arg: &MArgument) -> Self

Source§

fn parameter_type() -> Expr

Return the LibraryLink parameter type as a Wolfram Language expression. Read more
Source§

impl IntoArg for mcomplex

Source§

unsafe fn into_arg(self, arg: MArgument)

Move self into arg. Read more
Source§

fn return_type() -> Expr

Return the LibraryLink return type as a Wolfram Language expression. Read more
Source§

impl NumericArrayType for mcomplex

Source§

const TYPE: NumericArrayDataType = NumericArrayDataType::ComplexReal64

The NumericArrayDataType which dynamically represents the type which this trait is implemented for.