forked from pydata/sparse
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Size and density properties (pydata#69)
* Size and density properties * Docstrings and tests * Test .density using np.isclose * Fixed typos that made tests fail * Replaced other occurences of np.prod(self.shape) with self.size * Avoid float precision errors in .denstity docstring * maybe_densify raises ValueError instead of NotImplementedError * Updated docstring to match ValueError exception * changed allowed_nnz and allowed_fraction to max_size and min_density * changed min_fraction to min_density * Another docstring that didn't show ValueError * Documentation pages
- Loading branch information
1 parent
5eae5ab
commit 13acf8f
Showing
5 changed files
with
90 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
COO\.density | ||
============ | ||
|
||
.. currentmodule:: sparse | ||
|
||
.. autoattribute:: COO.density |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
COO\.size | ||
========= | ||
|
||
.. currentmodule:: sparse | ||
|
||
.. autoattribute:: COO.size |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters