Skip to main content

Module complex

Module complex 

Source
Expand description

Complex-valued Arrow/ndarray bridge utilities.

This module defines custom complex extension types:

  • ndarrow.complex32 with storage FixedSizeList<Float32>(2)
  • ndarrow.complex64 with storage FixedSizeList<Float64>(2)

Each list element stores [real, imag] in row-major order.

Structs§

Complex32Extension
Extension type descriptor for ndarrow.complex32.
Complex64Extension
Extension type descriptor for ndarrow.complex64.

Functions§

array1_complex32_to_extension
Converts an owned Array1<Complex32> into ndarrow.complex32 storage.
array1_complex64_to_extension
Converts an owned Array1<Complex64> into ndarrow.complex64 storage.
complex32_as_array_view1
Converts ndarrow.complex32 storage into an ArrayView1<Complex32>.
complex64_as_array_view1
Converts ndarrow.complex64 storage into an ArrayView1<Complex64>.