Expand description
Sparse Arrow/ndarray bridge utilities.
This module defines the custom ndarrow.csr_matrix extension type and
zero-copy sparse inbound conversions.
Structs§
- CsrMatrix
Batch Extension ndarrow.csr_matrix_batchextension type.- CsrMatrix
Batch Iter - Iterator over per-row sparse matrix views for
ndarrow.csr_matrix_batch. - CsrMatrix
Batch View - Column-level zero-copy view over
ndarrow.csr_matrix_batchstorage. - CsrMatrix
Extension ndarrow.csr_matrixextension type.- CsrMatrix
Metadata - Metadata carried by
ndarrow.csr_matrix. - CsrView
- Borrowed CSR view over Arrow buffers.
Functions§
- csr_
batch_ to_ extension_ array - Builds an Arrow
StructArrayplus extension field forndarrow.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_batchtogether with the outer validity buffer. - csr_
matrix_ batch_ view - Builds a column-level view over
ndarrow.csr_matrix_batchstorage. - csr_
to_ extension_ array - Builds an Arrow
StructArrayplus extension field forndarrow.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
StructArraytagged asndarrow.csr_matrix.