Skip to main content

Module array

Module array 

Source
Expand description

Dense multidimensional array: a shape, a flat buffer and the Layout that says how one indexes the other.

Buffers are either owned or borrowed from foreign memory (Arrow, the Python buffer protocol) through Buf, which is what makes the data boundary zero-copy.

Structs§

Array
An array: a logical shape, a flat buffer, and the layout joining them.
Buf
A flat element buffer, owned or borrowed.

Enums§

Data
Layout
How an array’s shape indexes its flat buffer.

Functions§

joins_made
The count of joins made since the process started. See JOINS.
layouts_made
The count of row-major materialisations since the process started. See LAYOUTS.

Type Aliases§

Owner
Anything that keeps a foreign buffer’s memory alive: the importing side stores its release guards here and the buffer outlives nothing else.