sparse
sparse copied to clipboard
Sparse multi-dimensional arrays for the PyData ecosystem
Very WIP draft PR for elemwise operations on CSR and CSC arrays. Currently just implements broadcasting operations between compressed 2d arrays. Cases that would be covered by a full implementation:...
https://github.com/bolt-project/bolt/issues/58 - [x] single argument ufuncs (sin, exp, etc.) and ufunc like functions (pd.isnull, notnull, astype, around, isclose) - [x] broadcasting binary operations (e.g., ndarray arithmetic) - [x] three argument...
Since the DOK array is versatile applicable I use them frequently in my projects. I needed support for slicing and advanced indexing and implemented it myself, see [gist](https://gist.github.com/stschroe/7c4660774835258c06b2be968eb49204#file-sparse_dok_indexer-py). The indexing...
I've replaced the dynamic structures with static ones for GCXS indexing. This improves the speed pretty significantly (twice as fast in a number of cases). Also, even allocating extra space...
Add CSD
`CSD` stands for Compressed Sparse Dimensions. It is a multidimensional generalization of `CSR`, `CSC` and `COO`. `CSD` has a few "compressed" dimensions and a few "uncompressed" dimensions. The "compressed" dimensions...
It seems likely that we'll want the ability to write fast numeric code in a low-level-ish language. There are a few options: 1. Cython 2. Numba 3. C/C++, wrapped with...
**Is your feature request related to a problem? Please describe.** Allow assignment of DOK subarray without requiring creation of dense array. **Describe the solution you'd like** ``` >>> import sparse...
Hi! This is an awesome package and I'm having fun using it to its full potential. Hopefully this is the right place for this. I'm having an issue where, after...
While investigating https://github.com/theislab/scanpy/issues/921 I ran into the following limitation when using a boolean array as an index. This is the expected behaviour for regular NumPy: ```python >>> import numpy as...