Skip to main content

complex64_as_array_view2

Function complex64_as_array_view2 

Source
pub fn complex64_as_array_view2(
    array: &FixedSizeListArray,
) -> Result<ArrayView2<'_, Complex64>, NdarrowError>
Expand description

Converts nested FixedSizeList<ndarrow.complex64>(D) storage into an ArrayView2<Complex64>.

The outer fixed-size list represents the vector dimension D, while each inner element is one ndarrow.complex64 scalar.

§Does not allocate

The returned ndarray view borrows Arrow’s primitive values buffer through the existing ndarrow.complex64 scalar extension storage.

§Errors

Returns an error on type mismatch, nulls, or storage-shape mismatch.