Sparse support to include vstack & hstack
See original GitHub issueI 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:
- Created 4 years ago
- Reactions:1
- Comments:6 (6 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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 think this issue can be closed now (as the PR is merged). Is that right @cjnolet? 🙂