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§

CsrMatrixBatchExtension
ndarrow.csr_matrix_batch extension type.
CsrMatrixBatchIter
Iterator over per-row sparse matrix views for ndarrow.csr_matrix_batch.
CsrMatrixBatchView
Column-level zero-copy view over ndarrow.csr_matrix_batch storage.
CsrMatrixExtension
ndarrow.csr_matrix extension type.
CsrMatrixMetadata
Metadata carried by ndarrow.csr_matrix.
CsrView
Borrowed CSR view over Arrow buffers.

Functions§

csr_batch_to_extension_array
Builds an Arrow StructArray plus extension field for ndarrow.csr_matrix_batch.
csr_matrix_batch_iter
Creates an iterator over per-row zero-copy sparse matrix views for ndarrow.csr_matrix_batch.
csr_matrix_batch_iter_masked
Creates an iterator over per-row zero-copy sparse matrix views for ndarrow.csr_matrix_batch together with the outer validity buffer.
csr_matrix_batch_view
Builds a column-level view over ndarrow.csr_matrix_batch storage.
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.