[][src]Function sprs::prod::csvec_dot_by_binary_search

pub fn csvec_dot_by_binary_search<N, I>(
    vec1: CsVecViewI<N, I>,
    vec2: CsVecViewI<N, I>
) -> N where
    I: SpIndex,
    N: Num + Copy

Compute the dot product of two sparse vectors, using binary search to find matching indices.

Runs in O(MlogN) time, where M and N are the number of non-zero entries in each vector.