ashvardanian / SimSIMD

Up to 200x Faster Dot Products & Similarity Metrics — for Python, Rust, C, JS, and Swift, supporting f64, f32, f16 real & complex, i8, and bit vectors using SIMD for both AVX2, AVX-512, NEON, SVE, & SVE2 📐
https://ashvardanian.com/posts/simsimd-faster-scipy/
Apache License 2.0
998 stars 59 forks source link

Feature: Sparse Matrix Multiplications #170

Open ogencoglu opened 2 months ago

ogencoglu commented 2 months ago

Describe what you are looking for

In numpy/scipy, A @ B is much faster if A is sparse and turned into scipy sparse matrix. If both are sparse or only matrix A is sparse and B is dense. Both works.

Can SimSIMD improve such matrix multiplications.

Can you contribute to the implementation?

Is your feature request specific to a certain interface?

It applies to everything

Contact Details

No response

Is there an existing issue for this?

Code of Conduct

ashvardanian commented 1 month ago

@ogencoglu, I'm sorry for the wait. This is a big feature request, and I didn't want to rush the decision.

Now, I am ready. Matrix Multiplications are coming in more flavors than one 😉