Skip to content

wishlist: sparse in-place AXPY/GEMM instead of deprecated sparsetools.csc_matvecs #5348

@tmylk

Description

@tmylk

Our package gensim depends on sparsetools.csc_matvecs which became internal in #3440 and shows deprecation notices .

sparsetools is used in gensim to save memory when corpus and chunk are large csc matrix and o is dense:

sparsetools.csc_matvecs(m, n, samples, corpus.indptr, corpus.indices,
                                corpus.data, o.ravel(), y.ravel())  # y = corpus * o
sparsetools.csc_matvecs(m, n, samples, chunk.indptr, chunk.indices,  # y = y + chunk * o
                                    chunk.data, o.ravel(), y.ravel())

It would be great to have an externally available sparse in-place AXPY to replace the csc_matvecs which is about to get deprecated.

Thanks to Pauli Virtanen on the mailing list for the suggestion.
https://mail.scipy.org/pipermail/scipy-user/2015-October/036712.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions