Skip to main content

arrayd_complex64_to_fixed_shape_tensor

Function arrayd_complex64_to_fixed_shape_tensor 

Source
pub fn arrayd_complex64_to_fixed_shape_tensor(
    field_name: &str,
    array: ArrayD<Complex64>,
) -> Result<(Field, FixedSizeListArray), NdarrowError>
Expand description

Converts an owned complex tensor batch into arrow.fixed_shape_tensor with ndarrow.complex64 element storage.

The first ndarray axis is interpreted as batch dimension. Remaining axes are stored in the fixed-shape tensor metadata.

§Allocation

Zero-copy for standard-layout arrays with zero offset. Non-standard layout or sliced offsets require one normalization allocation.

§Errors

Returns an error on invalid shape or Arrow metadata constraints.