spinguin.core.sparse_dot#
This module provides a Cython wrapper for the sparse matrix multiplication algorithm written in C++.
- sparse_dot(A: csc_array, B: csc_array, zero_value: float) csc_array #
Custom matrix multiplication for SciPy CSC matrices.
- Parameters:
A (csc_array) – Matrix A.
B (csc_array) – Matrix B.
zero_value (float) – Threshold below which a number is considered zero in the result matrix.
- Returns:
C – Result of the matrix multiplication C = A @ B.
- Return type:
csc_array