Changelog¶
0.9.1 / 2020-01-23¶
Fixed a bug where indexing with an empty list could lead to issues. (Issue #281, PR #282)
Change code formatter to black. (PR #284)
Add the
diagonalanddiagonalizefunctions. (Issue #288, PR #289, thanks @pettni)Add HTML repr for notebooks. (PR #283, thanks @daletovar)
Avoid making copy of
coordswhen making a newCOOarray.Add stack and concatenate for GCXS. (Issue #301, PR #303, thanks @daletovar).
Fix issue where functions dispatching to an attribute access wouldn’t work with
__array_function__. (Issue #308, PR #309).Add partial support for constructing and mirroring
COOobjects to Numba.
0.8.0 / 2019-08-26¶
This release switches to Numba’s new typed lists, a lot of back-end work with the CI infrastructure, so Linux, macOS and Windows are officially tested. It also includes bug fixes.
It also adds in-progress, not yet public support for the GCXS format, which is a generalisation of CSR/CSC. (huge thanks to @daletovar)
Fixed a bug where an array with size == 1 and nnz == 0 could not be broadcast. (Issue #242, PR #243)
Add
stdandvar. (PR #244)Move to Azure Pipelines with CI for Windows, macOS and Linux. (PR #245, PR #246, PR #247, PR #248)
Add
resize, and changereshapeso it raises aValueErroron shapes that don’t correspond to the same size. (Issue #241, Issue #250, PR #256 thanks, @daletovar)Add
isposinfandisneginf. (Issue #252, PR #253)Fix
tensordotwhen nnz = 0. (Issue #255, PR #256)Modifications to
__array_function__to allow for sparse XArrays. (PR #261, thanks @nvictus)Add not-yet-public support for GCXS. (PR #258, thanks @daletovar)
Improvements to
__array_function__. (PR #267, PR #272, thanks @crusaderky)Convert all Numba lists to typed lists. (PR #264)
Why write code when it exists elsewhere? (PR #277)
Fix some element-wise operations with scalars. (PR #278)
Private modules should be private, and tests should be in the package. (PR #280)
0.7.0 / 2019-03-14¶
This is a release that adds compatibility with NumPy’s new
__array_function__ protocol, for details refer to
NEP-18.
The other big change is that we dropped compatibility with Python 2. Users on Python 2 should use version 0.6.0.
There are also some bug-fixes relating to fill-values.
This was mainly a contributor-driven release.
The full list of changes can be found below:
Fixed a bug where going between
sparse.DOKandsparse.COOcaused fill-values to be lost. (Issue #225, PR #226).Fixed warning for a matrix that was incorrectly considered too dense. (Issue #228, PR #229)
Fixed some warnings in Python 3.7, the fix was needed. in preparation for Python 3.8. (PR #233, thanks @nils-werner)
Drop support for Python 2.7 (Issue #234, PR #235, thanks @hugovk)
Clearer error messages (Issue #230, Issue #231, PR #232)
Restructure requirements.txt files. (PR #236)
Support fill-value in reductions in specific cases. (Issue #237, PR #238)
Add
__array_function__support. (PR #239, thanks, @pentschev)Cleaner code! (PR #240)
0.6.0 / 2018-12-19¶
This release breaks backward-compatibility. Previously, if arrays were fed into
NumPy functions, an attempt would be made to densify the array and apply the NumPy
function. This was unintended behaviour in most cases, with the array filling up
memory before raising a MemoryError if the array was too large.
We have now changed this behaviour so that a RuntimeError is now raised if
an attempt is made to automatically densify an array. To densify, use the explicit
.todense() method.
Fixed a bug where
np.matrixcould sometimes fail to convert to aCOO. (Issue #199, PR #200).Make sure that
sparse @ sparsereturns a sparse array. (Issue #201, PR #203)Bring
operator.matmulbehaviour in line with NumPy forndim > 2. (Issue #202, PR #204, PR #217)Make sure
dtypeis preserved with theoutkwarg. (Issue #205, PR #206)Fix integer overflow in
reduceon Windows. (Issue #207, PR #208)Disallow auto-densification. (Issue #218, PR #220)
Add auto-densification configuration, and a configurable warning for checking if the array is too dense. (PR #210, PR #213)
Add pruning of fill-values to COO constructor. (PR #221)
0.5.0 / 2018-10-12¶
Added
COO.real,COO.imag, andCOO.conj(PR #196).Added
orderparameter toCOO.reshapeto make it work withnp.reshape(PR #193).Added
COO.meanandsparse.nanmean(PR #190).Added
sparse.fullandsparse.full_like(PR #189).Added
COO.clipmethod (PR #185).Added
COO.copymethod, and changed pickle ofCOOto not include its cache (PR #184).Added
sparse.eye,sparse.zeros,sparse.zeros_like,sparse.ones, andsparse.ones_like(PR #183).
0.4.1 / 2018-09-12¶
Allow mixed
ndarray-COOoperations if the result is sparse (Issue #124, via PR #182).Allow specifying a fill-value when converting from NumPy arrays (Issue #179, via PR #180).
Added
COO.anyandCOO.allmethods (PR #175).Indexing for
COOnow accepts a single one-dimensional array index (PR #172).The fill-value can now be something other than zero or
False(PR #165).Added a
sparse.rollfunction (PR #160).Numba code now releases the GIL. This leads to better multi-threaded performance in Dask (PR #159).
A number of bugs occurred, so to resolve them,
COO.coords.dtypeis alwaysnp.int64.COO, therefore, uses more memory than before (PR #158).Add support for saving and loading
COOfiles from disk (Issue #153, via PR #154).Support
COO.nonzeroandnp.argwhere(Issue #145, via PR #148).COOis now always canonical (PR #141).Improve indexing performance (PR #128).
Improve element-wise performance (PR #127).
Reductions now support a negative axis (Issue #117, via PR #118).
Match behaviour of
ufunc.reducefrom NumPy (Issue #107, via PR #108).
0.3.0 / 2018-02-22¶
Add NaN-skipping aggregations (PR #102).
Add equivalent to
np.where(PR #102).N-input universal functions now work (PR #98).
Make
dotmore consistent with NumPy (PR #96).Create a base class
SparseArray(PR #92).Minimum NumPy version is now 1.13 (PR #90).
Fix a bug where setting a
DOKelement to zero did nothing (Issue #93, via PR #94).
0.2.0 / 2018-01-25¶
Support faster
np.array(COO)(PR #87).Add
DOKtype (PR #85).Support
.sizeand.density(PR #69).Documentation added for the package (PR #43).
Minimum required SciPy version is now 0.19 (PR #70).
len(COO)now works (PR #68).scalar op COOnow works for all operators (PR #67).Validate axes for
.transpose()(PR #61).Extend indexing support (PR #57).
Add
randomfunction for generating random sparse arrays (PR #41).COO(COO)now copies the original object (PR #55).NumPy universal functions and reductions now work on
COOarrays (PR #49).Fix concatenate and stack for large arrays (Issue #32, via PR #51).
Support more operators and remove all special cases (PR #46).
Add support for
triuandtril(PR #40).Add support for Ellipsis (
...) andNonewhen indexing (PR #37).Add support for bitwise bindary operations like
&and|(PR #38).Support broadcasting in element-wise operations (PR #35).