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.
Complex32VariableShapeTensorIter
Iterator over per-row complex tensor views for arrow.variable_shape_tensor<ndarrow.complex32>.
Complex64Extension
Extension type descriptor for ndarrow.complex64.
Complex64VariableShapeTensorIter
Iterator over per-row complex tensor views for arrow.variable_shape_tensor<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.
array2_complex32_to_fixed_size_list
Converts an owned Array2<Complex32> into nested FixedSizeList<ndarrow.complex32>(N) storage.
array2_complex64_to_fixed_size_list
Converts an owned Array2<Complex64> into nested FixedSizeList<ndarrow.complex64>(N) storage.
arrayd_complex32_to_fixed_shape_tensor
Converts an owned complex tensor batch into arrow.fixed_shape_tensor with ndarrow.complex32 element storage.
arrayd_complex64_to_fixed_shape_tensor
Converts an owned complex tensor batch into arrow.fixed_shape_tensor with ndarrow.complex64 element storage.
arrays_complex32_to_variable_shape_tensor
Converts owned complex tensors into arrow.variable_shape_tensor storage with ndarrow.complex32 element storage.
arrays_complex64_to_variable_shape_tensor
Converts owned complex tensors into arrow.variable_shape_tensor storage with ndarrow.complex64 element storage.
complex32_as_array_view1
Converts ndarrow.complex32 storage into an ArrayView1<Complex32>.
complex32_as_array_view2
Converts nested FixedSizeList<ndarrow.complex32>(D) storage into an ArrayView2<Complex32>.
complex32_fixed_shape_tensor_as_array_viewd
Converts arrow.fixed_shape_tensor storage with ndarrow.complex32 element type into an ArrayViewD<Complex32>.
complex32_variable_shape_tensor_iter
Creates an iterator over per-row zero-copy complex tensor views for arrow.variable_shape_tensor<ndarrow.complex32>.
complex64_as_array_view1
Converts ndarrow.complex64 storage into an ArrayView1<Complex64>.
complex64_as_array_view2
Converts nested FixedSizeList<ndarrow.complex64>(D) storage into an ArrayView2<Complex64>.
complex64_fixed_shape_tensor_as_array_viewd
Converts arrow.fixed_shape_tensor storage with ndarrow.complex64 element type into an ArrayViewD<Complex64>.
complex64_variable_shape_tensor_iter
Creates an iterator over per-row zero-copy complex tensor views for arrow.variable_shape_tensor<ndarrow.complex64>.