Skip to main content

SparseExt

Trait SparseExt 

Source
pub trait SparseExt {
    // Required method
    fn patches(&self) -> Patches;

    // Provided method
    fn resolved_patches(&self) -> VortexResult<Patches> { ... }
}
Expand description

Extension trait for accessing patches on SparseArray and ArrayView<'_, Sparse>.

Patches are reconstructed from the array’s slots and stored metadata on each call.

Required Methods§

Source

fn patches(&self) -> Patches

Reconstruct patches from the array’s slots and metadata.

Provided Methods§

Source

fn resolved_patches(&self) -> VortexResult<Patches>

Return patches with offset-resolved indices (offset subtracted from each index).

Implementations on Foreign Types§

Source§

impl SparseExt for Array<Sparse>

Source§

impl SparseExt for ArrayView<'_, Sparse>

Implementors§