mlx_rs

Type Alias complex64

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

Type alias for num_complex::Complex<f32>.

Aliased Type§

struct complex64 {
    pub re: f32,
    pub im: f32,
}

Fields§

§re: f32

Real portion of the complex number

§im: f32

Imaginary portion of the complex number

Trait Implementations§

Source§

impl ArrayElement for complex64

Source§

const DTYPE: Dtype = Dtype::Complex64

The data type of the element.
Source§

fn array_item(array: &Array) -> Result<Self>

Access the value of a scalar array. Returns Err if the array is not scalar.
Source§

fn array_data(array: &Array) -> *const Self

Access the raw data of an array.
Source§

impl ScalarOrArray<'static> for complex64

Source§

type Array = Array

The reference type of the array.
Source§

fn into_owned_or_ref_array(self) -> Array

Convert to an owned or reference array.