question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Sparse support to include vstack & hstack

See original GitHub issue

I am finding the cupy.sparse packages to be very useful. For the most part, they match the scipy.sparse in provided functionality. One important feature that is currently lacking, which is supported by scipy.sparse [1], is the ability to hstack and vstack sparse arrays.

I am working to integrate cupy.sparse arrays into Dask.Array and it is necessary for the Dask.Array to be able to concatenate multiple blocks containing sparse arrays together when data is redistributed.

[1] https://docs.scipy.org/doc/scipy/reference/generated/scipy.sparse.hstack.html

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
grlee77commented, Nov 20, 2019

Please go ahead. Docstrings will have to be changed to the CuPy style and test cases added under tests/cupyx_tests/scipy_tests/sparse_tests/

On Wed, Nov 20, 2019, 8:19 AM Corey J. Nolet notifications@github.com wrote:

I don’t mind contributing this feature, unless you plan to work on it, @grlee77 https://github.com/grlee77. I’ll get myself familiar with the contributor guide.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/cupy/cupy/issues/2655?email_source=notifications&email_token=ABRZ7PONADRI64SH5TDGSLDQUU2PHA5CNFSM4JPIADIKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEER6HKA#issuecomment-556000168, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABRZ7PLDW5AJ4UXYSVC7XNTQUU2PHANCNFSM4JPIADIA .

0reactions
jakirkhamcommented, Mar 11, 2020

I think this issue can be closed now (as the PR is merged). Is that right @cjnolet? 🙂

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to hstack several sparse matrices (feature matrices)?
Use the sparse versions of vstack . As general rule you need to use sparse functions and methods, not the numpy ones with...
Read more >
scipy.sparse.hstack — SciPy v1.9.3 Manual
sparse format of the result (e.g., “csr”) by default an appropriate sparse matrix format is returned. This choice is subject to change. The...
Read more >
cupyx.scipy.sparse.hstack — CuPy 11.3.0 documentation
format (str) – sparse format of the result (e.g. “csr”) by default an appropriate sparse matrix format is returned. This choice is subject...
Read more >
Scipy Sparse vstack memory error
I have a bunch of scipy matrices (of the same #columns) loaded from disk. I want to combine them into one scipy sparse...
Read more >
HSTACK function - Microsoft Support
If an array has fewer rows than the maximum width of the selected arrays, Excel returns a #N/A error in the additional rows....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found