Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ENHANCEMENT] Define SparseArraysBase.sparse to convert from dense to sparse, dropping zero values #34

Open
mtfishman opened this issue Feb 13, 2025 · 1 comment
Labels
enhancement New feature or request

Comments

@mtfishman
Copy link
Member

See: https://sparsearrays.juliasparse.org/dev/#SparseArrays.sparse.

@mtfishman mtfishman added the enhancement New feature or request label Feb 13, 2025
@mtfishman
Copy link
Member Author

mtfishman commented Mar 20, 2025

Relatedly, it would be nice to define SparseArraysBase.dense for generically converting back to a dense array. Obviously you could use Array for that most of the time, but dense could be more generic and preserve some property about the sparse array, such that it is on GPU.

In addition, we should define something like BlockSparseArrays.sparseblocks and BlockSparseArrays.denseblocks for preserving the block structure and sparsity but making the blocks themselves sparse or dense. That's obviously an issue for BlockSparseArrays.jl but would rely on this functionality.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant