Skip to main content

Module outbound

Module outbound 

Source
Expand description

ndarray to Arrow conversions (zero-copy ownership transfer).

This module provides conversions from owned ndarray arrays to Arrow arrays. Ownership of the underlying buffer is transferred — no allocation occurs when the ndarray is in standard (C-contiguous) layout.

When the layout is non-standard, a contiguous copy is made automatically before transferring ownership.

§Allocation contract

  • Standard layout: zero allocation (ownership transfer only).
  • Non-standard layout: one allocation (as_standard_layout().into_owned()), then transfer.

Traits§

IntoArrow
Zero-copy ownership transfer from an ndarray array to an Arrow array.