simsimd

Trait Sparse

Source
pub trait Sparse
where Self: Sized,
{ // Required method fn intersect(a: &[Self], b: &[Self]) -> Option<f64>; }
Expand description

Sparse provides trait methods for sparse vectors.

Required Methods§

Source

fn intersect(a: &[Self], b: &[Self]) -> Option<f64>

Computes the number of common elements between two sparse vectors. both vectors must be sorted in ascending order.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl Sparse for u16

Source§

fn intersect(a: &[Self], b: &[Self]) -> Option<f64>

Source§

impl Sparse for u32

Source§

fn intersect(a: &[Self], b: &[Self]) -> Option<f64>

Implementors§