Skip to main content

Module sparse

Module sparse 

Source
Expand description

Sparse Arrow/ndarray bridge utilities.

This module defines the custom ndarrow.csr_matrix extension type and zero-copy sparse inbound conversions.

Structs§

CsrMatrixExtension
ndarrow.csr_matrix extension type.
CsrMatrixMetadata
Metadata carried by ndarrow.csr_matrix.
CsrView
Borrowed CSR view over Arrow buffers.

Functions§

csr_to_extension_array
Builds an Arrow StructArray plus extension field for ndarrow.csr_matrix.
csr_view_from_columns
Builds a zero-copy CSR view from two Arrow list columns.
csr_view_from_extension
Builds a zero-copy CSR view from a StructArray tagged as ndarrow.csr_matrix.