codecov-io: # [Codecov](https://codecov.io/gh/pydata/sparse/pull/118?src=pr&el=h1) Report
> Merging [#118](https://codecov.io/gh/pydata/sparse/pull/118?src=pr&el=desc) into [master](https://codecov.io/gh/pydata/sparse/commit/97d5690116f499f43e79c3debfe7d7881c8b10ba?src=pr&el=desc) will **increase** coverage by `<.01%`.
> The diff coverage is `100%`.

[![Impacted file tree graph](https://codecov.io/gh/pydata/sparse/pull/118/graphs/tree.svg?height=150&width=650&token=H212u0Uxxw&src=pr)](https://codecov.io/gh/pydata/sparse/pull/118?src=pr&el=tree)

```diff
@@            Coverage Diff             @@
##           master     #118      +/-   ##
==========================================
+ Coverage   96.04%   96.04%   +<.01%     
==========================================
  Files          11       11              
  Lines        1896     1897       +1     
==========================================
+ Hits         1821     1822       +1     
  Misses         75       75
```

| Flag | Coverage Δ | |
|---|---|---|
| #python27 | `95.15% <100%> (ø)` | :arrow_up: |
| #python36 | `96.04% <100%> (ø)` | :arrow_up: |

| [Impacted Files](https://codecov.io/gh/pydata/sparse/pull/118?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [sparse/coo.py](https://codecov.io/gh/pydata/sparse/pull/118/diff?src=pr&el=tree#diff-c3BhcnNlL2Nvby5weQ==) | `95.05% <100%> (ø)` | :arrow_up: |
| [sparse/tests/test\_coo.py](https://codecov.io/gh/pydata/sparse/pull/118/diff?src=pr&el=tree#diff-c3BhcnNlL3Rlc3RzL3Rlc3RfY29vLnB5) | `99.83% <100%> (ø)` | :arrow_up: |

------

[Continue to review full report at Codecov](https://codecov.io/gh/pydata/sparse/pull/118?src=pr&el=continue).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/pydata/sparse/pull/118?src=pr&el=footer). Last update [97d5690...2e470ae](https://codecov.io/gh/pydata/sparse/pull/118?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).

diff --git a/sparse/coo.py b/sparse/coo.py
index c305802..5100167 100644
--- a/sparse/coo.py
+++ b/sparse/coo.py
@@ -712,13 +712,15 @@ class COO(SparseArray, NDArrayOperatorsMixin):
         if not isinstance(axis, tuple):
             axis = (axis,)
 
+        axis = tuple(a if a >= 0 else a + self.ndim for a in axis)
+
         if set(axis) == set(range(self.ndim)):
             result = method.reduce(self.data, **kwargs)
             if self.nnz != self.size:
                 result = method(result, _zero_of_dtype(self.dtype)[()], **kwargs)
         else:
             axis = tuple(axis)
-            neg_axis = tuple(ax for ax in range(self.ndim) if ax not in axis)
+            neg_axis = tuple(ax for ax in range(self.ndim) if ax not in set(axis))
 
             a = self.transpose(neg_axis + axis)
             a = a.reshape((np.prod([self.shape[d] for d in neg_axis]),

Reduce operations raise error for negative axis values
Reduce operations like `.sum()`, `.prod()` etc. raise exceptions when you pass a negative `axis` value:

```python
import sparse
sparse.random((40, 50)).sum(0)  # works
sparse.random((40, 50)).sum(1)  # works
sparse.random((40, 50)).sum(-1)  # fails, should be equivalent to .sum(1)
```

The traceback I get:

```
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "proj_dir/sparse/sparse/coo.py", line 1038, in prod
    return self.reduce(np.multiply, axis=axis, keepdims=keepdims, dtype=dtype)
  File "proj_dir/sparse/sparse/coo.py", line 771, in reduce
    a = self.transpose(neg_axis + axis)
  File "proj_dir/sparse/sparse/coo.py", line 1099, in transpose
    raise ValueError("repeated axis in transpose")
ValueError: repeated axis in transpose
```
diff --git a/sparse/tests/test_coo.py b/sparse/tests/test_coo.py
index f03742b..8c4a767 100644
--- a/sparse/tests/test_coo.py
+++ b/sparse/tests/test_coo.py
@@ -19,7 +19,7 @@ from sparse.utils import assert_eq, is_lexsorted, random_value_array
     ('prod', {}, {}),
     ('min', {}, {}),
 ])
-@pytest.mark.parametrize('axis', [None, 0, 1, 2, (0, 2)])
+@pytest.mark.parametrize('axis', [None, 0, 1, 2, (0, 2), -3, (1, -1)])
 @pytest.mark.parametrize('keepdims', [True, False])
 def test_reductions(reduction, axis, keepdims, kwargs, eqkwargs):
     x = sparse.random((2, 3, 4), density=.25)

pip install -e .[all]
parse_log_pytest
requirements.txt
pytest pytest-cov pytest-flake8
apt-get update apt-get install -y gcc
3.6
requirements.txt
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
alabaster==0.7.13
attrs==22.2.0
Babel==2.11.0
certifi==2021.5.30
charset-normalizer==2.0.12
coverage==6.2
distlib==0.3.9
docutils==0.17.1
filelock==3.4.1
flake8==5.0.4
idna==3.10
imagesize==1.4.1
importlib-metadata==4.2.0
importlib-resources==5.4.0
iniconfig==1.1.1
Jinja2==3.0.3
MarkupSafe==2.0.1
mccabe==0.7.0
numpy==1.19.5
packaging==21.3
platformdirs==2.4.0
pluggy==1.0.0
pockets==0.9.1
py==1.11.0
pycodestyle==2.9.1
pyflakes==2.5.0
Pygments==2.14.0
pyparsing==3.1.4
pytest==7.0.1
pytest-cov==4.0.0
pytest-flake8==1.1.1
pytz==2025.2
requests==2.27.1
scipy==1.5.4
six==1.17.0
snowballstemmer==2.2.0
-e git+https://github.com/pydata/sparse.git@97d5690116f499f43e79c3debfe7d7881c8b10ba#egg=sparse
Sphinx==4.3.2
sphinx-rtd-theme==1.3.0
sphinxcontrib-applehelp==1.0.2
sphinxcontrib-devhelp==1.0.2
sphinxcontrib-htmlhelp==2.0.0
sphinxcontrib-jquery==4.1
sphinxcontrib-jsmath==1.0.1
sphinxcontrib-napoleon==0.7
sphinxcontrib-qthelp==1.0.3
sphinxcontrib-serializinghtml==1.1.5
toml==0.10.2
tomli==1.2.3
tox==3.28.0
typing_extensions==4.1.1
urllib3==1.26.20
virtualenv==20.16.2
zipp==3.6.0

name: sparse
channels:
  - defaults
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
  - conda-forge
dependencies:
  - _libgcc_mutex=0.1=main
  - _openmp_mutex=5.1=1_gnu
  - ca-certificates=2025.2.25=h06a4308_0
  - certifi=2021.5.30=py36h06a4308_0
  - ld_impl_linux-64=2.40=h12ee557_0
  - libffi=3.3=he6710b0_2
  - libgcc-ng=11.2.0=h1234567_1
  - libgomp=11.2.0=h1234567_1
  - libstdcxx-ng=11.2.0=h1234567_1
  - ncurses=6.4=h6a678d5_0
  - openssl=1.1.1w=h7f8727e_0
  - pip=21.2.2=py36h06a4308_0
  - python=3.6.13=h12debd9_1
  - readline=8.2=h5eee18b_0
  - setuptools=58.0.4=py36h06a4308_0
  - sqlite=3.45.3=h5eee18b_0
  - tk=8.6.14=h39e8969_0
  - wheel=0.37.1=pyhd3eb1b0_0
  - xz=5.6.4=h5eee18b_1
  - zlib=1.2.13=h5eee18b_1
  - pip:
      - alabaster==0.7.13
      - attrs==22.2.0
      - babel==2.11.0
      - charset-normalizer==2.0.12
      - coverage==6.2
      - distlib==0.3.9
      - docutils==0.17.1
      - filelock==3.4.1
      - flake8==5.0.4
      - idna==3.10
      - imagesize==1.4.1
      - importlib-metadata==4.2.0
      - importlib-resources==5.4.0
      - iniconfig==1.1.1
      - jinja2==3.0.3
      - markupsafe==2.0.1
      - mccabe==0.7.0
      - numpy==1.19.5
      - packaging==21.3
      - platformdirs==2.4.0
      - pluggy==1.0.0
      - pockets==0.9.1
      - py==1.11.0
      - pycodestyle==2.9.1
      - pyflakes==2.5.0
      - pygments==2.14.0
      - pyparsing==3.1.4
      - pytest==7.0.1
      - pytest-cov==4.0.0
      - pytest-flake8==1.1.1
      - pytz==2025.2
      - requests==2.27.1
      - scipy==1.5.4
      - six==1.17.0
      - snowballstemmer==2.2.0
      - sphinx==4.3.2
      - sphinx-rtd-theme==1.3.0
      - sphinxcontrib-applehelp==1.0.2
      - sphinxcontrib-devhelp==1.0.2
      - sphinxcontrib-htmlhelp==2.0.0
      - sphinxcontrib-jquery==4.1
      - sphinxcontrib-jsmath==1.0.1
      - sphinxcontrib-napoleon==0.7
      - sphinxcontrib-qthelp==1.0.3
      - sphinxcontrib-serializinghtml==1.1.5
      - toml==0.10.2
      - tomli==1.2.3
      - tox==3.28.0
      - typing-extensions==4.1.1
      - urllib3==1.26.20
      - virtualenv==20.16.2
      - zipp==3.6.0
prefix: /opt/conda/envs/sparse

sparse/tests/test_coo.py::test_reductions[True--3-max-kwargs0-eqkwargs0] sparse/tests/test_coo.py::test_reductions[True--3-sum-kwargs1-eqkwargs1] sparse/tests/test_coo.py::test_reductions[True--3-sum-kwargs2-eqkwargs2] sparse/tests/test_coo.py::test_reductions[True--3-prod-kwargs3-eqkwargs3] sparse/tests/test_coo.py::test_reductions[True--3-min-kwargs4-eqkwargs4] sparse/tests/test_coo.py::test_reductions[True-axis6-max-kwargs0-eqkwargs0] sparse/tests/test_coo.py::test_reductions[True-axis6-sum-kwargs1-eqkwargs1] sparse/tests/test_coo.py::test_reductions[True-axis6-sum-kwargs2-eqkwargs2] sparse/tests/test_coo.py::test_reductions[True-axis6-prod-kwargs3-eqkwargs3] sparse/tests/test_coo.py::test_reductions[True-axis6-min-kwargs4-eqkwargs4] sparse/tests/test_coo.py::test_reductions[False--3-max-kwargs0-eqkwargs0] sparse/tests/test_coo.py::test_reductions[False--3-sum-kwargs1-eqkwargs1] sparse/tests/test_coo.py::test_reductions[False--3-sum-kwargs2-eqkwargs2] sparse/tests/test_coo.py::test_reductions[False--3-prod-kwargs3-eqkwargs3] sparse/tests/test_coo.py::test_reductions[False--3-min-kwargs4-eqkwargs4] sparse/tests/test_coo.py::test_reductions[False-axis6-max-kwargs0-eqkwargs0] sparse/tests/test_coo.py::test_reductions[False-axis6-sum-kwargs1-eqkwargs1] sparse/tests/test_coo.py::test_reductions[False-axis6-sum-kwargs2-eqkwargs2] sparse/tests/test_coo.py::test_reductions[False-axis6-prod-kwargs3-eqkwargs3] sparse/tests/test_coo.py::test_reductions[False-axis6-min-kwargs4-eqkwargs4] sparse/tests/test_dok.py::test_setitem[shape0-index0-0.7310079324091565] sparse/tests/test_dok.py::test_setitem[shape1-index1-0.9397650048613811] sparse/tests/test_dok.py::test_setitem[shape3-1-0.913702328682973] sparse/tests/test_dok.py::test_setitem[shape4-index4-0.41929456607776927] sparse/tests/test_dok.py::test_setitem[shape5-index5-0.14437558963401265] sparse/tests/test_dok.py::test_setitem[shape9-index9-0.009333677970012055] sparse/tests/test_dok.py::test_setitem[shape11-index11-0.0986223103134295] sparse/tests/test_dok.py::test_setitem[shape13-index13-0.8151000944026473]
sparse/tests/test_coo.py::test_op_scipy_sparse_left[func2] sparse/tests/test_coo.py::test_op_scipy_sparse_left[func3] sparse/tests/test_coo.py::test_op_scipy_sparse_left[func4] sparse/tests/test_coo.py::test_op_scipy_sparse_left[func5]
sparse/coo.py::sparse.coo.COO sparse/coo.py::sparse.coo.COO.T sparse/coo.py::sparse.coo.COO.__len__ sparse/coo.py::sparse.coo.COO.dot sparse/coo.py::sparse.coo.COO.dtype sparse/coo.py::sparse.coo.COO.from_numpy sparse/coo.py::sparse.coo.COO.from_scipy_sparse sparse/coo.py::sparse.coo.COO.linear_loc sparse/coo.py::sparse.coo.COO.max sparse/coo.py::sparse.coo.COO.maybe_densify sparse/coo.py::sparse.coo.COO.min sparse/coo.py::sparse.coo.COO.nbytes sparse/coo.py::sparse.coo.COO.nnz sparse/coo.py::sparse.coo.COO.prod sparse/coo.py::sparse.coo.COO.reduce sparse/coo.py::sparse.coo.COO.reshape sparse/coo.py::sparse.coo.COO.sort_indices sparse/coo.py::sparse.coo.COO.sum sparse/coo.py::sparse.coo.COO.sum_duplicates sparse/coo.py::sparse.coo.COO.todense sparse/coo.py::sparse.coo.COO.transpose sparse/dok.py::sparse.dok.DOK sparse/dok.py::sparse.dok.DOK.from_coo sparse/dok.py::sparse.dok.DOK.from_numpy sparse/dok.py::sparse.dok.DOK.nnz sparse/dok.py::sparse.dok.DOK.to_coo sparse/dok.py::sparse.dok.DOK.todense sparse/slicing.py::sparse.slicing.check_index sparse/slicing.py::sparse.slicing.normalize_index sparse/slicing.py::sparse.slicing.normalize_slice sparse/slicing.py::sparse.slicing.posify_index sparse/slicing.py::sparse.slicing.replace_ellipsis sparse/slicing.py::sparse.slicing.sanitize_index sparse/sparse_array.py::sparse.sparse_array.SparseArray.density sparse/sparse_array.py::sparse.sparse_array.SparseArray.ndim sparse/sparse_array.py::sparse.sparse_array.SparseArray.nnz sparse/sparse_array.py::sparse.sparse_array.SparseArray.size sparse/utils.py::sparse.utils.random sparse/tests/test_coo.py::test_reductions[True-None-max-kwargs0-eqkwargs0] sparse/tests/test_coo.py::test_reductions[True-None-sum-kwargs1-eqkwargs1] sparse/tests/test_coo.py::test_reductions[True-None-sum-kwargs2-eqkwargs2] sparse/tests/test_coo.py::test_reductions[True-None-prod-kwargs3-eqkwargs3] sparse/tests/test_coo.py::test_reductions[True-None-min-kwargs4-eqkwargs4] sparse/tests/test_coo.py::test_reductions[True-0-max-kwargs0-eqkwargs0] sparse/tests/test_coo.py::test_reductions[True-0-sum-kwargs1-eqkwargs1] sparse/tests/test_coo.py::test_reductions[True-0-sum-kwargs2-eqkwargs2] sparse/tests/test_coo.py::test_reductions[True-0-prod-kwargs3-eqkwargs3] sparse/tests/test_coo.py::test_reductions[True-0-min-kwargs4-eqkwargs4] sparse/tests/test_coo.py::test_reductions[True-1-max-kwargs0-eqkwargs0] sparse/tests/test_coo.py::test_reductions[True-1-sum-kwargs1-eqkwargs1] sparse/tests/test_coo.py::test_reductions[True-1-sum-kwargs2-eqkwargs2] sparse/tests/test_coo.py::test_reductions[True-1-prod-kwargs3-eqkwargs3] sparse/tests/test_coo.py::test_reductions[True-1-min-kwargs4-eqkwargs4] sparse/tests/test_coo.py::test_reductions[True-2-max-kwargs0-eqkwargs0] sparse/tests/test_coo.py::test_reductions[True-2-sum-kwargs1-eqkwargs1] sparse/tests/test_coo.py::test_reductions[True-2-sum-kwargs2-eqkwargs2] sparse/tests/test_coo.py::test_reductions[True-2-prod-kwargs3-eqkwargs3] sparse/tests/test_coo.py::test_reductions[True-2-min-kwargs4-eqkwargs4] sparse/tests/test_coo.py::test_reductions[True-axis4-max-kwargs0-eqkwargs0] sparse/tests/test_coo.py::test_reductions[True-axis4-sum-kwargs1-eqkwargs1] sparse/tests/test_coo.py::test_reductions[True-axis4-sum-kwargs2-eqkwargs2] sparse/tests/test_coo.py::test_reductions[True-axis4-prod-kwargs3-eqkwargs3] sparse/tests/test_coo.py::test_reductions[True-axis4-min-kwargs4-eqkwargs4] sparse/tests/test_coo.py::test_reductions[False-None-max-kwargs0-eqkwargs0] sparse/tests/test_coo.py::test_reductions[False-None-sum-kwargs1-eqkwargs1] sparse/tests/test_coo.py::test_reductions[False-None-sum-kwargs2-eqkwargs2] sparse/tests/test_coo.py::test_reductions[False-None-prod-kwargs3-eqkwargs3] sparse/tests/test_coo.py::test_reductions[False-None-min-kwargs4-eqkwargs4] sparse/tests/test_coo.py::test_reductions[False-0-max-kwargs0-eqkwargs0] sparse/tests/test_coo.py::test_reductions[False-0-sum-kwargs1-eqkwargs1] sparse/tests/test_coo.py::test_reductions[False-0-sum-kwargs2-eqkwargs2] sparse/tests/test_coo.py::test_reductions[False-0-prod-kwargs3-eqkwargs3] sparse/tests/test_coo.py::test_reductions[False-0-min-kwargs4-eqkwargs4] sparse/tests/test_coo.py::test_reductions[False-1-max-kwargs0-eqkwargs0] sparse/tests/test_coo.py::test_reductions[False-1-sum-kwargs1-eqkwargs1] sparse/tests/test_coo.py::test_reductions[False-1-sum-kwargs2-eqkwargs2] sparse/tests/test_coo.py::test_reductions[False-1-prod-kwargs3-eqkwargs3] sparse/tests/test_coo.py::test_reductions[False-1-min-kwargs4-eqkwargs4] sparse/tests/test_coo.py::test_reductions[False-2-max-kwargs0-eqkwargs0] sparse/tests/test_coo.py::test_reductions[False-2-sum-kwargs1-eqkwargs1] sparse/tests/test_coo.py::test_reductions[False-2-sum-kwargs2-eqkwargs2] sparse/tests/test_coo.py::test_reductions[False-2-prod-kwargs3-eqkwargs3] sparse/tests/test_coo.py::test_reductions[False-2-min-kwargs4-eqkwargs4] sparse/tests/test_coo.py::test_reductions[False-axis4-max-kwargs0-eqkwargs0] sparse/tests/test_coo.py::test_reductions[False-axis4-sum-kwargs1-eqkwargs1] sparse/tests/test_coo.py::test_reductions[False-axis4-sum-kwargs2-eqkwargs2] sparse/tests/test_coo.py::test_reductions[False-axis4-prod-kwargs3-eqkwargs3] sparse/tests/test_coo.py::test_reductions[False-axis4-min-kwargs4-eqkwargs4] sparse/tests/test_coo.py::test_ufunc_reductions[True-None-amax-kwargs0-eqkwargs0] sparse/tests/test_coo.py::test_ufunc_reductions[True-None-sum-kwargs1-eqkwargs1] sparse/tests/test_coo.py::test_ufunc_reductions[True-None-sum-kwargs2-eqkwargs2] sparse/tests/test_coo.py::test_ufunc_reductions[True-None-prod-kwargs3-eqkwargs3] sparse/tests/test_coo.py::test_ufunc_reductions[True-None-amin-kwargs4-eqkwargs4] sparse/tests/test_coo.py::test_ufunc_reductions[True-0-amax-kwargs0-eqkwargs0] sparse/tests/test_coo.py::test_ufunc_reductions[True-0-sum-kwargs1-eqkwargs1] sparse/tests/test_coo.py::test_ufunc_reductions[True-0-sum-kwargs2-eqkwargs2] sparse/tests/test_coo.py::test_ufunc_reductions[True-0-prod-kwargs3-eqkwargs3] sparse/tests/test_coo.py::test_ufunc_reductions[True-0-amin-kwargs4-eqkwargs4] sparse/tests/test_coo.py::test_ufunc_reductions[True-1-amax-kwargs0-eqkwargs0] sparse/tests/test_coo.py::test_ufunc_reductions[True-1-sum-kwargs1-eqkwargs1] sparse/tests/test_coo.py::test_ufunc_reductions[True-1-sum-kwargs2-eqkwargs2] sparse/tests/test_coo.py::test_ufunc_reductions[True-1-prod-kwargs3-eqkwargs3] sparse/tests/test_coo.py::test_ufunc_reductions[True-1-amin-kwargs4-eqkwargs4] sparse/tests/test_coo.py::test_ufunc_reductions[True-2-amax-kwargs0-eqkwargs0] sparse/tests/test_coo.py::test_ufunc_reductions[True-2-sum-kwargs1-eqkwargs1] sparse/tests/test_coo.py::test_ufunc_reductions[True-2-sum-kwargs2-eqkwargs2] sparse/tests/test_coo.py::test_ufunc_reductions[True-2-prod-kwargs3-eqkwargs3] sparse/tests/test_coo.py::test_ufunc_reductions[True-2-amin-kwargs4-eqkwargs4] sparse/tests/test_coo.py::test_ufunc_reductions[True-axis4-amax-kwargs0-eqkwargs0] sparse/tests/test_coo.py::test_ufunc_reductions[True-axis4-sum-kwargs1-eqkwargs1] sparse/tests/test_coo.py::test_ufunc_reductions[True-axis4-sum-kwargs2-eqkwargs2] sparse/tests/test_coo.py::test_ufunc_reductions[True-axis4-prod-kwargs3-eqkwargs3] sparse/tests/test_coo.py::test_ufunc_reductions[True-axis4-amin-kwargs4-eqkwargs4] sparse/tests/test_coo.py::test_ufunc_reductions[False-None-amax-kwargs0-eqkwargs0] sparse/tests/test_coo.py::test_ufunc_reductions[False-None-sum-kwargs1-eqkwargs1] sparse/tests/test_coo.py::test_ufunc_reductions[False-None-sum-kwargs2-eqkwargs2] sparse/tests/test_coo.py::test_ufunc_reductions[False-None-prod-kwargs3-eqkwargs3] sparse/tests/test_coo.py::test_ufunc_reductions[False-None-amin-kwargs4-eqkwargs4] sparse/tests/test_coo.py::test_ufunc_reductions[False-0-amax-kwargs0-eqkwargs0] sparse/tests/test_coo.py::test_ufunc_reductions[False-0-sum-kwargs1-eqkwargs1] sparse/tests/test_coo.py::test_ufunc_reductions[False-0-sum-kwargs2-eqkwargs2] sparse/tests/test_coo.py::test_ufunc_reductions[False-0-prod-kwargs3-eqkwargs3] sparse/tests/test_coo.py::test_ufunc_reductions[False-0-amin-kwargs4-eqkwargs4] sparse/tests/test_coo.py::test_ufunc_reductions[False-1-amax-kwargs0-eqkwargs0] sparse/tests/test_coo.py::test_ufunc_reductions[False-1-sum-kwargs1-eqkwargs1] sparse/tests/test_coo.py::test_ufunc_reductions[False-1-sum-kwargs2-eqkwargs2] sparse/tests/test_coo.py::test_ufunc_reductions[False-1-prod-kwargs3-eqkwargs3] sparse/tests/test_coo.py::test_ufunc_reductions[False-1-amin-kwargs4-eqkwargs4] sparse/tests/test_coo.py::test_ufunc_reductions[False-2-amax-kwargs0-eqkwargs0] sparse/tests/test_coo.py::test_ufunc_reductions[False-2-sum-kwargs1-eqkwargs1] sparse/tests/test_coo.py::test_ufunc_reductions[False-2-sum-kwargs2-eqkwargs2] sparse/tests/test_coo.py::test_ufunc_reductions[False-2-prod-kwargs3-eqkwargs3] sparse/tests/test_coo.py::test_ufunc_reductions[False-2-amin-kwargs4-eqkwargs4] sparse/tests/test_coo.py::test_ufunc_reductions[False-axis4-amax-kwargs0-eqkwargs0] sparse/tests/test_coo.py::test_ufunc_reductions[False-axis4-sum-kwargs1-eqkwargs1] sparse/tests/test_coo.py::test_ufunc_reductions[False-axis4-sum-kwargs2-eqkwargs2] sparse/tests/test_coo.py::test_ufunc_reductions[False-axis4-prod-kwargs3-eqkwargs3] sparse/tests/test_coo.py::test_ufunc_reductions[False-axis4-amin-kwargs4-eqkwargs4] sparse/tests/test_coo.py::test_ufunc_reductions_kwargs[amax-kwargs0] sparse/tests/test_coo.py::test_ufunc_reductions_kwargs[sum-kwargs1] sparse/tests/test_coo.py::test_ufunc_reductions_kwargs[prod-kwargs2] sparse/tests/test_coo.py::test_ufunc_reductions_kwargs[reduce-kwargs3] sparse/tests/test_coo.py::test_ufunc_reductions_kwargs[reduce-kwargs4] sparse/tests/test_coo.py::test_ufunc_reductions_kwargs[reduce-kwargs5] sparse/tests/test_coo.py::test_nan_reductions[0.25-False-None-nansum] sparse/tests/test_coo.py::test_nan_reductions[0.25-False-None-nanprod] sparse/tests/test_coo.py::test_nan_reductions[0.25-False-None-nanmax] sparse/tests/test_coo.py::test_nan_reductions[0.25-False-None-nanmin] sparse/tests/test_coo.py::test_nan_reductions[0.25-False-0-nansum] sparse/tests/test_coo.py::test_nan_reductions[0.25-False-0-nanprod] sparse/tests/test_coo.py::test_nan_reductions[0.25-False-0-nanmax] sparse/tests/test_coo.py::test_nan_reductions[0.25-False-0-nanmin] sparse/tests/test_coo.py::test_nan_reductions[0.25-False-1-nansum] sparse/tests/test_coo.py::test_nan_reductions[0.25-False-1-nanprod] sparse/tests/test_coo.py::test_nan_reductions[0.25-False-1-nanmax] sparse/tests/test_coo.py::test_nan_reductions[0.25-False-1-nanmin] sparse/tests/test_coo.py::test_nan_reductions[0.5-False-None-nansum] sparse/tests/test_coo.py::test_nan_reductions[0.5-False-None-nanprod] sparse/tests/test_coo.py::test_nan_reductions[0.5-False-None-nanmax] sparse/tests/test_coo.py::test_nan_reductions[0.5-False-None-nanmin] sparse/tests/test_coo.py::test_nan_reductions[0.5-False-0-nansum] sparse/tests/test_coo.py::test_nan_reductions[0.5-False-0-nanprod] sparse/tests/test_coo.py::test_nan_reductions[0.5-False-0-nanmax] sparse/tests/test_coo.py::test_nan_reductions[0.5-False-0-nanmin] sparse/tests/test_coo.py::test_nan_reductions[0.5-False-1-nansum] sparse/tests/test_coo.py::test_nan_reductions[0.5-False-1-nanprod] sparse/tests/test_coo.py::test_nan_reductions[0.5-False-1-nanmax] sparse/tests/test_coo.py::test_nan_reductions[0.5-False-1-nanmin] sparse/tests/test_coo.py::test_nan_reductions[0.75-False-None-nansum] sparse/tests/test_coo.py::test_nan_reductions[0.75-False-None-nanprod] sparse/tests/test_coo.py::test_nan_reductions[0.75-False-None-nanmax] sparse/tests/test_coo.py::test_nan_reductions[0.75-False-None-nanmin] sparse/tests/test_coo.py::test_nan_reductions[0.75-False-0-nansum] sparse/tests/test_coo.py::test_nan_reductions[0.75-False-0-nanprod] sparse/tests/test_coo.py::test_nan_reductions[0.75-False-0-nanmax] sparse/tests/test_coo.py::test_nan_reductions[0.75-False-0-nanmin] sparse/tests/test_coo.py::test_nan_reductions[0.75-False-1-nansum] sparse/tests/test_coo.py::test_nan_reductions[0.75-False-1-nanprod] sparse/tests/test_coo.py::test_nan_reductions[0.75-False-1-nanmax] sparse/tests/test_coo.py::test_nan_reductions[0.75-False-1-nanmin] sparse/tests/test_coo.py::test_nan_reductions[1.0-False-None-nansum] sparse/tests/test_coo.py::test_nan_reductions[1.0-False-None-nanprod] sparse/tests/test_coo.py::test_nan_reductions[1.0-False-None-nanmax] sparse/tests/test_coo.py::test_nan_reductions[1.0-False-None-nanmin] sparse/tests/test_coo.py::test_nan_reductions[1.0-False-0-nansum] sparse/tests/test_coo.py::test_nan_reductions[1.0-False-0-nanprod] sparse/tests/test_coo.py::test_nan_reductions[1.0-False-0-nanmax] sparse/tests/test_coo.py::test_nan_reductions[1.0-False-0-nanmin] sparse/tests/test_coo.py::test_nan_reductions[1.0-False-1-nansum] sparse/tests/test_coo.py::test_nan_reductions[1.0-False-1-nanprod] sparse/tests/test_coo.py::test_nan_reductions[1.0-False-1-nanmax] sparse/tests/test_coo.py::test_nan_reductions[1.0-False-1-nanmin] sparse/tests/test_coo.py::test_all_nan_reduction_warning[None-nanmax] sparse/tests/test_coo.py::test_all_nan_reduction_warning[None-nanmin] sparse/tests/test_coo.py::test_all_nan_reduction_warning[0-nanmax] sparse/tests/test_coo.py::test_all_nan_reduction_warning[0-nanmin] sparse/tests/test_coo.py::test_all_nan_reduction_warning[1-nanmax] sparse/tests/test_coo.py::test_all_nan_reduction_warning[1-nanmin] sparse/tests/test_coo.py::test_transpose[None] sparse/tests/test_coo.py::test_transpose[axis1] sparse/tests/test_coo.py::test_transpose[axis2] sparse/tests/test_coo.py::test_transpose[axis3] sparse/tests/test_coo.py::test_transpose[axis4] sparse/tests/test_coo.py::test_transpose[axis5] sparse/tests/test_coo.py::test_transpose[axis6] sparse/tests/test_coo.py::test_transpose_error[axis0] sparse/tests/test_coo.py::test_transpose_error[axis1] sparse/tests/test_coo.py::test_transpose_error[axis2] sparse/tests/test_coo.py::test_transpose_error[axis3] sparse/tests/test_coo.py::test_transpose_error[axis4] sparse/tests/test_coo.py::test_transpose_error[axis5] sparse/tests/test_coo.py::test_reshape[a0-b0] sparse/tests/test_coo.py::test_reshape[a1-b1] sparse/tests/test_coo.py::test_reshape[a2-b2] sparse/tests/test_coo.py::test_reshape[a3-b3] sparse/tests/test_coo.py::test_reshape[a4-b4] sparse/tests/test_coo.py::test_reshape[a5-b5] sparse/tests/test_coo.py::test_reshape[a6-b6] sparse/tests/test_coo.py::test_reshape[a7-b7] sparse/tests/test_coo.py::test_reshape[a8-b8] sparse/tests/test_coo.py::test_reshape[a9-b9] sparse/tests/test_coo.py::test_large_reshape sparse/tests/test_coo.py::test_reshape_same sparse/tests/test_coo.py::test_to_scipy_sparse sparse/tests/test_coo.py::test_tensordot[a_shape0-b_shape0-axes0] sparse/tests/test_coo.py::test_tensordot[a_shape1-b_shape1-axes1] sparse/tests/test_coo.py::test_tensordot[a_shape2-b_shape2-axes2] sparse/tests/test_coo.py::test_tensordot[a_shape3-b_shape3-axes3] sparse/tests/test_coo.py::test_tensordot[a_shape4-b_shape4-axes4] sparse/tests/test_coo.py::test_tensordot[a_shape5-b_shape5-axes5] sparse/tests/test_coo.py::test_tensordot[a_shape6-b_shape6-axes6] sparse/tests/test_coo.py::test_tensordot[a_shape7-b_shape7-axes7] sparse/tests/test_coo.py::test_tensordot[a_shape8-b_shape8-axes8] sparse/tests/test_coo.py::test_tensordot[a_shape9-b_shape9-0] sparse/tests/test_coo.py::test_dot[a_shape0-b_shape0] sparse/tests/test_coo.py::test_dot[a_shape1-b_shape1] sparse/tests/test_coo.py::test_dot[a_shape2-b_shape2] sparse/tests/test_coo.py::test_dot[a_shape3-b_shape3] sparse/tests/test_coo.py::test_dot[a_shape4-b_shape4] sparse/tests/test_coo.py::test_elemwise[expm1] sparse/tests/test_coo.py::test_elemwise[log1p] sparse/tests/test_coo.py::test_elemwise[sin] sparse/tests/test_coo.py::test_elemwise[tan] sparse/tests/test_coo.py::test_elemwise[sinh] sparse/tests/test_coo.py::test_elemwise[tanh] sparse/tests/test_coo.py::test_elemwise[floor] sparse/tests/test_coo.py::test_elemwise[ceil] sparse/tests/test_coo.py::test_elemwise[sqrt] sparse/tests/test_coo.py::test_elemwise[conjugate0] sparse/tests/test_coo.py::test_elemwise[round_] sparse/tests/test_coo.py::test_elemwise[rint] sparse/tests/test_coo.py::test_elemwise[<lambda>0] sparse/tests/test_coo.py::test_elemwise[conjugate1] sparse/tests/test_coo.py::test_elemwise[conjugate2] sparse/tests/test_coo.py::test_elemwise[<lambda>1] sparse/tests/test_coo.py::test_elemwise[abs] sparse/tests/test_coo.py::test_elemwise_binary[shape0-mul] sparse/tests/test_coo.py::test_elemwise_binary[shape0-add] sparse/tests/test_coo.py::test_elemwise_binary[shape0-sub] sparse/tests/test_coo.py::test_elemwise_binary[shape0-gt] sparse/tests/test_coo.py::test_elemwise_binary[shape0-lt] sparse/tests/test_coo.py::test_elemwise_binary[shape0-ne] sparse/tests/test_coo.py::test_elemwise_binary[shape1-mul] sparse/tests/test_coo.py::test_elemwise_binary[shape1-add] sparse/tests/test_coo.py::test_elemwise_binary[shape1-sub] sparse/tests/test_coo.py::test_elemwise_binary[shape1-gt] sparse/tests/test_coo.py::test_elemwise_binary[shape1-lt] sparse/tests/test_coo.py::test_elemwise_binary[shape1-ne] sparse/tests/test_coo.py::test_elemwise_binary[shape2-mul] sparse/tests/test_coo.py::test_elemwise_binary[shape2-add] sparse/tests/test_coo.py::test_elemwise_binary[shape2-sub] sparse/tests/test_coo.py::test_elemwise_binary[shape2-gt] sparse/tests/test_coo.py::test_elemwise_binary[shape2-lt] sparse/tests/test_coo.py::test_elemwise_binary[shape2-ne] sparse/tests/test_coo.py::test_elemwise_binary[shape3-mul] sparse/tests/test_coo.py::test_elemwise_binary[shape3-add] sparse/tests/test_coo.py::test_elemwise_binary[shape3-sub] sparse/tests/test_coo.py::test_elemwise_binary[shape3-gt] sparse/tests/test_coo.py::test_elemwise_binary[shape3-lt] sparse/tests/test_coo.py::test_elemwise_binary[shape3-ne] sparse/tests/test_coo.py::test_elemwise_trinary[shape0-<lambda>0] sparse/tests/test_coo.py::test_elemwise_trinary[shape0-<lambda>1] sparse/tests/test_coo.py::test_elemwise_trinary[shape0-<lambda>2] sparse/tests/test_coo.py::test_elemwise_trinary[shape0-<lambda>3] sparse/tests/test_coo.py::test_elemwise_trinary[shape1-<lambda>0] sparse/tests/test_coo.py::test_elemwise_trinary[shape1-<lambda>1] sparse/tests/test_coo.py::test_elemwise_trinary[shape1-<lambda>2] sparse/tests/test_coo.py::test_elemwise_trinary[shape1-<lambda>3] sparse/tests/test_coo.py::test_elemwise_trinary[shape2-<lambda>0] sparse/tests/test_coo.py::test_elemwise_trinary[shape2-<lambda>1] sparse/tests/test_coo.py::test_elemwise_trinary[shape2-<lambda>2] sparse/tests/test_coo.py::test_elemwise_trinary[shape2-<lambda>3] sparse/tests/test_coo.py::test_elemwise_trinary[shape3-<lambda>0] sparse/tests/test_coo.py::test_elemwise_trinary[shape3-<lambda>1] sparse/tests/test_coo.py::test_elemwise_trinary[shape3-<lambda>2] sparse/tests/test_coo.py::test_elemwise_trinary[shape3-<lambda>3] sparse/tests/test_coo.py::test_binary_broadcasting[shape10-shape20-add] sparse/tests/test_coo.py::test_binary_broadcasting[shape10-shape20-mul] sparse/tests/test_coo.py::test_binary_broadcasting[shape11-shape21-add] sparse/tests/test_coo.py::test_binary_broadcasting[shape11-shape21-mul] sparse/tests/test_coo.py::test_binary_broadcasting[shape12-shape22-add] sparse/tests/test_coo.py::test_binary_broadcasting[shape12-shape22-mul] sparse/tests/test_coo.py::test_binary_broadcasting[shape13-shape23-add] sparse/tests/test_coo.py::test_binary_broadcasting[shape13-shape23-mul] sparse/tests/test_coo.py::test_binary_broadcasting[shape14-shape24-add] sparse/tests/test_coo.py::test_binary_broadcasting[shape14-shape24-mul] sparse/tests/test_coo.py::test_binary_broadcasting[shape15-shape25-add] sparse/tests/test_coo.py::test_binary_broadcasting[shape15-shape25-mul] sparse/tests/test_coo.py::test_binary_broadcasting[shape16-shape26-add] sparse/tests/test_coo.py::test_binary_broadcasting[shape16-shape26-mul] sparse/tests/test_coo.py::test_binary_broadcasting[shape17-shape27-add] sparse/tests/test_coo.py::test_binary_broadcasting[shape17-shape27-mul] sparse/tests/test_coo.py::test_binary_broadcasting[shape18-shape28-add] sparse/tests/test_coo.py::test_binary_broadcasting[shape18-shape28-mul] sparse/tests/test_coo.py::test_broadcast_to[shape10-shape20] sparse/tests/test_coo.py::test_broadcast_to[shape11-shape21] sparse/tests/test_coo.py::test_broadcast_to[shape12-shape22] sparse/tests/test_coo.py::test_trinary_broadcasting[<lambda>0-shapes0] sparse/tests/test_coo.py::test_trinary_broadcasting[<lambda>0-shapes1] sparse/tests/test_coo.py::test_trinary_broadcasting[<lambda>0-shapes2] sparse/tests/test_coo.py::test_trinary_broadcasting[<lambda>0-shapes3] sparse/tests/test_coo.py::test_trinary_broadcasting[<lambda>0-shapes4] sparse/tests/test_coo.py::test_trinary_broadcasting[<lambda>0-shapes5] sparse/tests/test_coo.py::test_trinary_broadcasting[<lambda>0-shapes6] sparse/tests/test_coo.py::test_trinary_broadcasting[<lambda>0-shapes7] sparse/tests/test_coo.py::test_trinary_broadcasting[<lambda>1-shapes0] sparse/tests/test_coo.py::test_trinary_broadcasting[<lambda>1-shapes1] sparse/tests/test_coo.py::test_trinary_broadcasting[<lambda>1-shapes2] sparse/tests/test_coo.py::test_trinary_broadcasting[<lambda>1-shapes3] sparse/tests/test_coo.py::test_trinary_broadcasting[<lambda>1-shapes4] sparse/tests/test_coo.py::test_trinary_broadcasting[<lambda>1-shapes5] sparse/tests/test_coo.py::test_trinary_broadcasting[<lambda>1-shapes6] sparse/tests/test_coo.py::test_trinary_broadcasting[<lambda>1-shapes7] sparse/tests/test_coo.py::test_trinary_broadcasting[<lambda>2-shapes0] sparse/tests/test_coo.py::test_trinary_broadcasting[<lambda>2-shapes1] sparse/tests/test_coo.py::test_trinary_broadcasting[<lambda>2-shapes2] sparse/tests/test_coo.py::test_trinary_broadcasting[<lambda>2-shapes3] sparse/tests/test_coo.py::test_trinary_broadcasting[<lambda>2-shapes4] sparse/tests/test_coo.py::test_trinary_broadcasting[<lambda>2-shapes5] sparse/tests/test_coo.py::test_trinary_broadcasting[<lambda>2-shapes6] sparse/tests/test_coo.py::test_trinary_broadcasting[<lambda>2-shapes7] sparse/tests/test_coo.py::test_trinary_broadcasting[<lambda>3-shapes0] sparse/tests/test_coo.py::test_trinary_broadcasting[<lambda>3-shapes1] sparse/tests/test_coo.py::test_trinary_broadcasting[<lambda>3-shapes2] sparse/tests/test_coo.py::test_trinary_broadcasting[<lambda>3-shapes3] sparse/tests/test_coo.py::test_trinary_broadcasting[<lambda>3-shapes4] sparse/tests/test_coo.py::test_trinary_broadcasting[<lambda>3-shapes5] sparse/tests/test_coo.py::test_trinary_broadcasting[<lambda>3-shapes6] sparse/tests/test_coo.py::test_trinary_broadcasting[<lambda>3-shapes7] sparse/tests/test_coo.py::test_trinary_broadcasting[<lambda>4-shapes0] sparse/tests/test_coo.py::test_trinary_broadcasting[<lambda>4-shapes1] sparse/tests/test_coo.py::test_trinary_broadcasting[<lambda>4-shapes2] sparse/tests/test_coo.py::test_trinary_broadcasting[<lambda>4-shapes3] sparse/tests/test_coo.py::test_trinary_broadcasting[<lambda>4-shapes4] sparse/tests/test_coo.py::test_trinary_broadcasting[<lambda>4-shapes5] sparse/tests/test_coo.py::test_trinary_broadcasting[<lambda>4-shapes6] sparse/tests/test_coo.py::test_trinary_broadcasting[<lambda>4-shapes7] sparse/tests/test_coo.py::test_trinary_broadcasting[<lambda>5-shapes0] sparse/tests/test_coo.py::test_trinary_broadcasting[<lambda>5-shapes1] sparse/tests/test_coo.py::test_trinary_broadcasting[<lambda>5-shapes2] sparse/tests/test_coo.py::test_trinary_broadcasting[<lambda>5-shapes3] sparse/tests/test_coo.py::test_trinary_broadcasting[<lambda>5-shapes4] sparse/tests/test_coo.py::test_trinary_broadcasting[<lambda>5-shapes5] sparse/tests/test_coo.py::test_trinary_broadcasting[<lambda>5-shapes6] sparse/tests/test_coo.py::test_trinary_broadcasting[<lambda>5-shapes7] sparse/tests/test_coo.py::test_trinary_broadcasting_pathological[0.25-nan-shapes0-<lambda>] sparse/tests/test_coo.py::test_trinary_broadcasting_pathological[0.25-nan-shapes1-<lambda>] sparse/tests/test_coo.py::test_trinary_broadcasting_pathological[0.25-nan-shapes2-<lambda>] sparse/tests/test_coo.py::test_trinary_broadcasting_pathological[0.25-nan-shapes3-<lambda>] sparse/tests/test_coo.py::test_trinary_broadcasting_pathological[0.25-inf-shapes0-<lambda>] sparse/tests/test_coo.py::test_trinary_broadcasting_pathological[0.25-inf-shapes1-<lambda>] sparse/tests/test_coo.py::test_trinary_broadcasting_pathological[0.25-inf-shapes2-<lambda>] sparse/tests/test_coo.py::test_trinary_broadcasting_pathological[0.25-inf-shapes3-<lambda>] sparse/tests/test_coo.py::test_trinary_broadcasting_pathological[0.25--inf-shapes0-<lambda>] sparse/tests/test_coo.py::test_trinary_broadcasting_pathological[0.25--inf-shapes1-<lambda>] sparse/tests/test_coo.py::test_trinary_broadcasting_pathological[0.25--inf-shapes2-<lambda>] sparse/tests/test_coo.py::test_trinary_broadcasting_pathological[0.25--inf-shapes3-<lambda>] sparse/tests/test_coo.py::test_trinary_broadcasting_pathological[0.5-nan-shapes0-<lambda>] sparse/tests/test_coo.py::test_trinary_broadcasting_pathological[0.5-nan-shapes1-<lambda>] sparse/tests/test_coo.py::test_trinary_broadcasting_pathological[0.5-nan-shapes2-<lambda>] sparse/tests/test_coo.py::test_trinary_broadcasting_pathological[0.5-nan-shapes3-<lambda>] sparse/tests/test_coo.py::test_trinary_broadcasting_pathological[0.5-inf-shapes0-<lambda>] sparse/tests/test_coo.py::test_trinary_broadcasting_pathological[0.5-inf-shapes1-<lambda>] sparse/tests/test_coo.py::test_trinary_broadcasting_pathological[0.5-inf-shapes2-<lambda>] sparse/tests/test_coo.py::test_trinary_broadcasting_pathological[0.5-inf-shapes3-<lambda>] sparse/tests/test_coo.py::test_trinary_broadcasting_pathological[0.5--inf-shapes0-<lambda>] sparse/tests/test_coo.py::test_trinary_broadcasting_pathological[0.5--inf-shapes1-<lambda>] sparse/tests/test_coo.py::test_trinary_broadcasting_pathological[0.5--inf-shapes2-<lambda>] sparse/tests/test_coo.py::test_trinary_broadcasting_pathological[0.5--inf-shapes3-<lambda>] sparse/tests/test_coo.py::test_trinary_broadcasting_pathological[0.75-nan-shapes0-<lambda>] sparse/tests/test_coo.py::test_trinary_broadcasting_pathological[0.75-nan-shapes1-<lambda>] sparse/tests/test_coo.py::test_trinary_broadcasting_pathological[0.75-nan-shapes2-<lambda>] sparse/tests/test_coo.py::test_trinary_broadcasting_pathological[0.75-nan-shapes3-<lambda>] sparse/tests/test_coo.py::test_trinary_broadcasting_pathological[0.75-inf-shapes0-<lambda>] sparse/tests/test_coo.py::test_trinary_broadcasting_pathological[0.75-inf-shapes1-<lambda>] sparse/tests/test_coo.py::test_trinary_broadcasting_pathological[0.75-inf-shapes2-<lambda>] sparse/tests/test_coo.py::test_trinary_broadcasting_pathological[0.75-inf-shapes3-<lambda>] sparse/tests/test_coo.py::test_trinary_broadcasting_pathological[0.75--inf-shapes0-<lambda>] sparse/tests/test_coo.py::test_trinary_broadcasting_pathological[0.75--inf-shapes1-<lambda>] sparse/tests/test_coo.py::test_trinary_broadcasting_pathological[0.75--inf-shapes2-<lambda>] sparse/tests/test_coo.py::test_trinary_broadcasting_pathological[0.75--inf-shapes3-<lambda>] sparse/tests/test_coo.py::test_trinary_broadcasting_pathological[1.0-nan-shapes0-<lambda>] sparse/tests/test_coo.py::test_trinary_broadcasting_pathological[1.0-nan-shapes1-<lambda>] sparse/tests/test_coo.py::test_trinary_broadcasting_pathological[1.0-nan-shapes2-<lambda>] sparse/tests/test_coo.py::test_trinary_broadcasting_pathological[1.0-nan-shapes3-<lambda>] sparse/tests/test_coo.py::test_trinary_broadcasting_pathological[1.0-inf-shapes0-<lambda>] sparse/tests/test_coo.py::test_trinary_broadcasting_pathological[1.0-inf-shapes1-<lambda>] sparse/tests/test_coo.py::test_trinary_broadcasting_pathological[1.0-inf-shapes2-<lambda>] sparse/tests/test_coo.py::test_trinary_broadcasting_pathological[1.0-inf-shapes3-<lambda>] sparse/tests/test_coo.py::test_trinary_broadcasting_pathological[1.0--inf-shapes0-<lambda>] sparse/tests/test_coo.py::test_trinary_broadcasting_pathological[1.0--inf-shapes1-<lambda>] sparse/tests/test_coo.py::test_trinary_broadcasting_pathological[1.0--inf-shapes2-<lambda>] sparse/tests/test_coo.py::test_trinary_broadcasting_pathological[1.0--inf-shapes3-<lambda>] sparse/tests/test_coo.py::test_sparse_broadcasting sparse/tests/test_coo.py::test_dense_broadcasting sparse/tests/test_coo.py::test_sparsearray_elemwise[coo] sparse/tests/test_coo.py::test_sparsearray_elemwise[dok] sparse/tests/test_coo.py::test_ndarray_densification_fails sparse/tests/test_coo.py::test_elemwise_noargs sparse/tests/test_coo.py::test_auto_densification_fails[pow] sparse/tests/test_coo.py::test_auto_densification_fails[truediv] sparse/tests/test_coo.py::test_auto_densification_fails[floordiv] sparse/tests/test_coo.py::test_auto_densification_fails[ge] sparse/tests/test_coo.py::test_auto_densification_fails[le] sparse/tests/test_coo.py::test_auto_densification_fails[eq] sparse/tests/test_coo.py::test_auto_densification_fails[mod] sparse/tests/test_coo.py::test_elemwise_scalar[True-mul-5] sparse/tests/test_coo.py::test_elemwise_scalar[True-add-0] sparse/tests/test_coo.py::test_elemwise_scalar[True-sub-0] sparse/tests/test_coo.py::test_elemwise_scalar[True-pow-5] sparse/tests/test_coo.py::test_elemwise_scalar[True-truediv-3] sparse/tests/test_coo.py::test_elemwise_scalar[True-floordiv-4] sparse/tests/test_coo.py::test_elemwise_scalar[True-gt-5] sparse/tests/test_coo.py::test_elemwise_scalar[True-lt--5] sparse/tests/test_coo.py::test_elemwise_scalar[True-ne-0] sparse/tests/test_coo.py::test_elemwise_scalar[True-ge-5] sparse/tests/test_coo.py::test_elemwise_scalar[True-le--3] sparse/tests/test_coo.py::test_elemwise_scalar[True-eq-1] sparse/tests/test_coo.py::test_elemwise_scalar[True-mod-5] sparse/tests/test_coo.py::test_elemwise_scalar[False-mul-5] sparse/tests/test_coo.py::test_elemwise_scalar[False-add-0] sparse/tests/test_coo.py::test_elemwise_scalar[False-sub-0] sparse/tests/test_coo.py::test_elemwise_scalar[False-pow-5] sparse/tests/test_coo.py::test_elemwise_scalar[False-truediv-3] sparse/tests/test_coo.py::test_elemwise_scalar[False-floordiv-4] sparse/tests/test_coo.py::test_elemwise_scalar[False-gt-5] sparse/tests/test_coo.py::test_elemwise_scalar[False-lt--5] sparse/tests/test_coo.py::test_elemwise_scalar[False-ne-0] sparse/tests/test_coo.py::test_elemwise_scalar[False-ge-5] sparse/tests/test_coo.py::test_elemwise_scalar[False-le--3] sparse/tests/test_coo.py::test_elemwise_scalar[False-eq-1] sparse/tests/test_coo.py::test_elemwise_scalar[False-mod-5] sparse/tests/test_coo.py::test_leftside_elemwise_scalar[True-mul-5] sparse/tests/test_coo.py::test_leftside_elemwise_scalar[True-add-0] sparse/tests/test_coo.py::test_leftside_elemwise_scalar[True-sub-0] sparse/tests/test_coo.py::test_leftside_elemwise_scalar[True-gt--5] sparse/tests/test_coo.py::test_leftside_elemwise_scalar[True-lt-5] sparse/tests/test_coo.py::test_leftside_elemwise_scalar[True-ne-0] sparse/tests/test_coo.py::test_leftside_elemwise_scalar[True-ge--5] sparse/tests/test_coo.py::test_leftside_elemwise_scalar[True-le-3] sparse/tests/test_coo.py::test_leftside_elemwise_scalar[True-eq-1] sparse/tests/test_coo.py::test_leftside_elemwise_scalar[False-mul-5] sparse/tests/test_coo.py::test_leftside_elemwise_scalar[False-add-0] sparse/tests/test_coo.py::test_leftside_elemwise_scalar[False-sub-0] sparse/tests/test_coo.py::test_leftside_elemwise_scalar[False-gt--5] sparse/tests/test_coo.py::test_leftside_elemwise_scalar[False-lt-5] sparse/tests/test_coo.py::test_leftside_elemwise_scalar[False-ne-0] sparse/tests/test_coo.py::test_leftside_elemwise_scalar[False-ge--5] sparse/tests/test_coo.py::test_leftside_elemwise_scalar[False-le-3] sparse/tests/test_coo.py::test_leftside_elemwise_scalar[False-eq-1] sparse/tests/test_coo.py::test_scalar_densification_fails[add-5] sparse/tests/test_coo.py::test_scalar_densification_fails[sub--5] sparse/tests/test_coo.py::test_scalar_densification_fails[pow--3] sparse/tests/test_coo.py::test_scalar_densification_fails[truediv-0] sparse/tests/test_coo.py::test_scalar_densification_fails[floordiv-0] sparse/tests/test_coo.py::test_scalar_densification_fails[gt--5] sparse/tests/test_coo.py::test_scalar_densification_fails[lt-5] sparse/tests/test_coo.py::test_scalar_densification_fails[ne-1] sparse/tests/test_coo.py::test_scalar_densification_fails[ge--3] sparse/tests/test_coo.py::test_scalar_densification_fails[le-3] sparse/tests/test_coo.py::test_scalar_densification_fails[eq-0] sparse/tests/test_coo.py::test_bitwise_binary[shape0-and_] sparse/tests/test_coo.py::test_bitwise_binary[shape0-or_] sparse/tests/test_coo.py::test_bitwise_binary[shape0-xor] sparse/tests/test_coo.py::test_bitwise_binary[shape1-and_] sparse/tests/test_coo.py::test_bitwise_binary[shape1-or_] sparse/tests/test_coo.py::test_bitwise_binary[shape1-xor] sparse/tests/test_coo.py::test_bitwise_binary[shape2-and_] sparse/tests/test_coo.py::test_bitwise_binary[shape2-or_] sparse/tests/test_coo.py::test_bitwise_binary[shape2-xor] sparse/tests/test_coo.py::test_bitwise_binary[shape3-and_] sparse/tests/test_coo.py::test_bitwise_binary[shape3-or_] sparse/tests/test_coo.py::test_bitwise_binary[shape3-xor] sparse/tests/test_coo.py::test_bitshift_binary[shape0-lshift] sparse/tests/test_coo.py::test_bitshift_binary[shape0-rshift] sparse/tests/test_coo.py::test_bitshift_binary[shape1-lshift] sparse/tests/test_coo.py::test_bitshift_binary[shape1-rshift] sparse/tests/test_coo.py::test_bitshift_binary[shape2-lshift] sparse/tests/test_coo.py::test_bitshift_binary[shape2-rshift] sparse/tests/test_coo.py::test_bitshift_binary[shape3-lshift] sparse/tests/test_coo.py::test_bitshift_binary[shape3-rshift] sparse/tests/test_coo.py::test_bitwise_scalar[shape0-and_] sparse/tests/test_coo.py::test_bitwise_scalar[shape1-and_] sparse/tests/test_coo.py::test_bitwise_scalar[shape2-and_] sparse/tests/test_coo.py::test_bitwise_scalar[shape3-and_] sparse/tests/test_coo.py::test_bitshift_scalar[shape0-lshift] sparse/tests/test_coo.py::test_bitshift_scalar[shape0-rshift] sparse/tests/test_coo.py::test_bitshift_scalar[shape1-lshift] sparse/tests/test_coo.py::test_bitshift_scalar[shape1-rshift] sparse/tests/test_coo.py::test_bitshift_scalar[shape2-lshift] sparse/tests/test_coo.py::test_bitshift_scalar[shape2-rshift] sparse/tests/test_coo.py::test_bitshift_scalar[shape3-lshift] sparse/tests/test_coo.py::test_bitshift_scalar[shape3-rshift] sparse/tests/test_coo.py::test_unary_bitwise_densification_fails[shape0-invert] sparse/tests/test_coo.py::test_unary_bitwise_densification_fails[shape1-invert] sparse/tests/test_coo.py::test_unary_bitwise_densification_fails[shape2-invert] sparse/tests/test_coo.py::test_unary_bitwise_densification_fails[shape3-invert] sparse/tests/test_coo.py::test_binary_bitwise_densification_fails[shape0-or_] sparse/tests/test_coo.py::test_binary_bitwise_densification_fails[shape0-xor] sparse/tests/test_coo.py::test_binary_bitwise_densification_fails[shape1-or_] sparse/tests/test_coo.py::test_binary_bitwise_densification_fails[shape1-xor] sparse/tests/test_coo.py::test_binary_bitwise_densification_fails[shape2-or_] sparse/tests/test_coo.py::test_binary_bitwise_densification_fails[shape2-xor] sparse/tests/test_coo.py::test_binary_bitwise_densification_fails[shape3-or_] sparse/tests/test_coo.py::test_binary_bitwise_densification_fails[shape3-xor] sparse/tests/test_coo.py::test_binary_bitshift_densification_fails[shape0-lshift] sparse/tests/test_coo.py::test_binary_bitshift_densification_fails[shape0-rshift] sparse/tests/test_coo.py::test_binary_bitshift_densification_fails[shape1-lshift] sparse/tests/test_coo.py::test_binary_bitshift_densification_fails[shape1-rshift] sparse/tests/test_coo.py::test_binary_bitshift_densification_fails[shape2-lshift] sparse/tests/test_coo.py::test_binary_bitshift_densification_fails[shape2-rshift] sparse/tests/test_coo.py::test_binary_bitshift_densification_fails[shape3-lshift] sparse/tests/test_coo.py::test_binary_bitshift_densification_fails[shape3-rshift] sparse/tests/test_coo.py::test_bitwise_binary_bool[shape0-and_] sparse/tests/test_coo.py::test_bitwise_binary_bool[shape0-or_] sparse/tests/test_coo.py::test_bitwise_binary_bool[shape0-xor] sparse/tests/test_coo.py::test_bitwise_binary_bool[shape1-and_] sparse/tests/test_coo.py::test_bitwise_binary_bool[shape1-or_] sparse/tests/test_coo.py::test_bitwise_binary_bool[shape1-xor] sparse/tests/test_coo.py::test_bitwise_binary_bool[shape2-and_] sparse/tests/test_coo.py::test_bitwise_binary_bool[shape2-or_] sparse/tests/test_coo.py::test_bitwise_binary_bool[shape2-xor] sparse/tests/test_coo.py::test_bitwise_binary_bool[shape3-and_] sparse/tests/test_coo.py::test_bitwise_binary_bool[shape3-or_] sparse/tests/test_coo.py::test_bitwise_binary_bool[shape3-xor] sparse/tests/test_coo.py::test_elemwise_binary_empty sparse/tests/test_coo.py::test_gt sparse/tests/test_coo.py::test_slicing[0] sparse/tests/test_coo.py::test_slicing[1] sparse/tests/test_coo.py::test_slicing[-1] sparse/tests/test_coo.py::test_slicing[index3] sparse/tests/test_coo.py::test_slicing[index4] sparse/tests/test_coo.py::test_slicing[index5] sparse/tests/test_coo.py::test_slicing[index6] sparse/tests/test_coo.py::test_slicing[index7] sparse/tests/test_coo.py::test_slicing[index8] sparse/tests/test_coo.py::test_slicing[index9] sparse/tests/test_coo.py::test_slicing[index10] sparse/tests/test_coo.py::test_slicing[index11] sparse/tests/test_coo.py::test_slicing[index12] sparse/tests/test_coo.py::test_slicing[index13] sparse/tests/test_coo.py::test_slicing[index14] sparse/tests/test_coo.py::test_slicing[index15] sparse/tests/test_coo.py::test_slicing[index16] sparse/tests/test_coo.py::test_slicing[index17] sparse/tests/test_coo.py::test_slicing[index18] sparse/tests/test_coo.py::test_slicing[index19] sparse/tests/test_coo.py::test_slicing[index20] sparse/tests/test_coo.py::test_slicing[index21] sparse/tests/test_coo.py::test_slicing[index22] sparse/tests/test_coo.py::test_slicing[index23] sparse/tests/test_coo.py::test_slicing[index24] sparse/tests/test_coo.py::test_slicing[index25] sparse/tests/test_coo.py::test_slicing[index26] sparse/tests/test_coo.py::test_slicing[index27] sparse/tests/test_coo.py::test_slicing[index28] sparse/tests/test_coo.py::test_slicing[index29] sparse/tests/test_coo.py::test_slicing[index30] sparse/tests/test_coo.py::test_slicing[index31] sparse/tests/test_coo.py::test_slicing[index32] sparse/tests/test_coo.py::test_slicing[index33] sparse/tests/test_coo.py::test_slicing[index34] sparse/tests/test_coo.py::test_slicing[index35] sparse/tests/test_coo.py::test_slicing[index36] sparse/tests/test_coo.py::test_slicing[index37] sparse/tests/test_coo.py::test_slicing[index38] sparse/tests/test_coo.py::test_slicing[index39] sparse/tests/test_coo.py::test_slicing[index40] sparse/tests/test_coo.py::test_slicing[index41] sparse/tests/test_coo.py::test_slicing[index42] sparse/tests/test_coo.py::test_slicing[index43] sparse/tests/test_coo.py::test_slicing[index44] sparse/tests/test_coo.py::test_custom_dtype_slicing sparse/tests/test_coo.py::test_slicing_errors[index0] sparse/tests/test_coo.py::test_slicing_errors[index1] sparse/tests/test_coo.py::test_slicing_errors[index2] sparse/tests/test_coo.py::test_slicing_errors[5] sparse/tests/test_coo.py::test_slicing_errors[-5] sparse/tests/test_coo.py::test_slicing_errors[foo] sparse/tests/test_coo.py::test_slicing_errors[index6] sparse/tests/test_coo.py::test_slicing_errors[0.5] sparse/tests/test_coo.py::test_slicing_errors[index8] sparse/tests/test_coo.py::test_slicing_errors[index9] sparse/tests/test_coo.py::test_canonical sparse/tests/test_coo.py::test_concatenate sparse/tests/test_coo.py::test_concatenate_mixed[stack-0] sparse/tests/test_coo.py::test_concatenate_mixed[stack-1] sparse/tests/test_coo.py::test_concatenate_mixed[concatenate-0] sparse/tests/test_coo.py::test_concatenate_mixed[concatenate-1] sparse/tests/test_coo.py::test_stack[0-shape0] sparse/tests/test_coo.py::test_stack[0-shape1] sparse/tests/test_coo.py::test_stack[0-shape2] sparse/tests/test_coo.py::test_stack[1-shape0] sparse/tests/test_coo.py::test_stack[1-shape1] sparse/tests/test_coo.py::test_stack[1-shape2] sparse/tests/test_coo.py::test_stack[-1-shape0] sparse/tests/test_coo.py::test_stack[-1-shape1] sparse/tests/test_coo.py::test_stack[-1-shape2] sparse/tests/test_coo.py::test_large_concat_stack sparse/tests/test_coo.py::test_coord_dtype sparse/tests/test_coo.py::test_addition sparse/tests/test_coo.py::test_addition_not_ok_when_large_and_sparse sparse/tests/test_coo.py::test_scalar_multiplication[2] sparse/tests/test_coo.py::test_scalar_multiplication[2.5] sparse/tests/test_coo.py::test_scalar_multiplication[scalar2] sparse/tests/test_coo.py::test_scalar_multiplication[scalar3] sparse/tests/test_coo.py::test_scalar_exponentiation sparse/tests/test_coo.py::test_create_with_lists_of_tuples sparse/tests/test_coo.py::test_sizeof sparse/tests/test_coo.py::test_scipy_sparse_interface sparse/tests/test_coo.py::test_scipy_sparse_interaction[coo] sparse/tests/test_coo.py::test_scipy_sparse_interaction[csr] sparse/tests/test_coo.py::test_scipy_sparse_interaction[dok] sparse/tests/test_coo.py::test_scipy_sparse_interaction[csc] sparse/tests/test_coo.py::test_op_scipy_sparse[mul] sparse/tests/test_coo.py::test_op_scipy_sparse[add] sparse/tests/test_coo.py::test_op_scipy_sparse[sub] sparse/tests/test_coo.py::test_op_scipy_sparse[gt] sparse/tests/test_coo.py::test_op_scipy_sparse[lt] sparse/tests/test_coo.py::test_op_scipy_sparse[ne] sparse/tests/test_coo.py::test_op_scipy_sparse_left[add] sparse/tests/test_coo.py::test_op_scipy_sparse_left[sub] sparse/tests/test_coo.py::test_cache_csr sparse/tests/test_coo.py::test_empty_shape sparse/tests/test_coo.py::test_single_dimension sparse/tests/test_coo.py::test_raise_dense sparse/tests/test_coo.py::test_large_sum sparse/tests/test_coo.py::test_add_many_sparse_arrays sparse/tests/test_coo.py::test_caching sparse/tests/test_coo.py::test_scalar_slicing sparse/tests/test_coo.py::test_triul[shape0-0] sparse/tests/test_coo.py::test_triul[shape1-1] sparse/tests/test_coo.py::test_triul[shape2--1] sparse/tests/test_coo.py::test_triul[shape3--2] sparse/tests/test_coo.py::test_triul[shape4-1000] sparse/tests/test_coo.py::test_empty_reduction sparse/tests/test_coo.py::test_random_shape[0.1-shape0] sparse/tests/test_coo.py::test_random_shape[0.1-shape1] sparse/tests/test_coo.py::test_random_shape[0.1-shape2] sparse/tests/test_coo.py::test_random_shape[0.3-shape0] sparse/tests/test_coo.py::test_random_shape[0.3-shape1] sparse/tests/test_coo.py::test_random_shape[0.3-shape2] sparse/tests/test_coo.py::test_random_shape[0.5-shape0] sparse/tests/test_coo.py::test_random_shape[0.5-shape1] sparse/tests/test_coo.py::test_random_shape[0.5-shape2] sparse/tests/test_coo.py::test_random_shape[0.7-shape0] sparse/tests/test_coo.py::test_random_shape[0.7-shape1] sparse/tests/test_coo.py::test_random_shape[0.7-shape2] sparse/tests/test_coo.py::test_two_random_unequal sparse/tests/test_coo.py::test_two_random_same_seed sparse/tests/test_coo.py::test_random_sorted sparse/tests/test_coo.py::test_random_rvs[0.0-shape0-None-float64] sparse/tests/test_coo.py::test_random_rvs[0.0-shape0-rvs-int] sparse/tests/test_coo.py::test_random_rvs[0.0-shape0-<lambda>-bool] sparse/tests/test_coo.py::test_random_rvs[0.0-shape1-None-float64] sparse/tests/test_coo.py::test_random_rvs[0.0-shape1-rvs-int] sparse/tests/test_coo.py::test_random_rvs[0.0-shape1-<lambda>-bool] sparse/tests/test_coo.py::test_random_rvs[0.01-shape0-None-float64] sparse/tests/test_coo.py::test_random_rvs[0.01-shape0-rvs-int] sparse/tests/test_coo.py::test_random_rvs[0.01-shape0-<lambda>-bool] sparse/tests/test_coo.py::test_random_rvs[0.01-shape1-None-float64] sparse/tests/test_coo.py::test_random_rvs[0.01-shape1-rvs-int] sparse/tests/test_coo.py::test_random_rvs[0.01-shape1-<lambda>-bool] sparse/tests/test_coo.py::test_random_rvs[0.1-shape0-None-float64] sparse/tests/test_coo.py::test_random_rvs[0.1-shape0-rvs-int] sparse/tests/test_coo.py::test_random_rvs[0.1-shape0-<lambda>-bool] sparse/tests/test_coo.py::test_random_rvs[0.1-shape1-None-float64] sparse/tests/test_coo.py::test_random_rvs[0.1-shape1-rvs-int] sparse/tests/test_coo.py::test_random_rvs[0.1-shape1-<lambda>-bool] sparse/tests/test_coo.py::test_random_rvs[0.2-shape0-None-float64] sparse/tests/test_coo.py::test_random_rvs[0.2-shape0-rvs-int] sparse/tests/test_coo.py::test_random_rvs[0.2-shape0-<lambda>-bool] sparse/tests/test_coo.py::test_random_rvs[0.2-shape1-None-float64] sparse/tests/test_coo.py::test_random_rvs[0.2-shape1-rvs-int] sparse/tests/test_coo.py::test_random_rvs[0.2-shape1-<lambda>-bool] sparse/tests/test_coo.py::test_scalar_shape_construction sparse/tests/test_coo.py::test_len sparse/tests/test_coo.py::test_density sparse/tests/test_coo.py::test_size sparse/tests/test_coo.py::test_np_array sparse/tests/test_coo.py::test_three_arg_where[shapes0] sparse/tests/test_coo.py::test_three_arg_where[shapes1] sparse/tests/test_coo.py::test_three_arg_where[shapes2] sparse/tests/test_coo.py::test_three_arg_where[shapes3] sparse/tests/test_coo.py::test_three_arg_where[shapes4] sparse/tests/test_coo.py::test_three_arg_where[shapes5] sparse/tests/test_coo.py::test_three_arg_where[shapes6] sparse/tests/test_coo.py::test_three_arg_where[shapes7] sparse/tests/test_coo.py::test_one_arg_where sparse/tests/test_coo.py::test_one_arg_where_dense sparse/tests/test_coo.py::test_two_arg_where sparse/tests/test_dok.py::test_random_shape_nnz[0.1-shape0] sparse/tests/test_dok.py::test_random_shape_nnz[0.1-shape1] sparse/tests/test_dok.py::test_random_shape_nnz[0.1-shape2] sparse/tests/test_dok.py::test_random_shape_nnz[0.3-shape0] sparse/tests/test_dok.py::test_random_shape_nnz[0.3-shape1] sparse/tests/test_dok.py::test_random_shape_nnz[0.3-shape2] sparse/tests/test_dok.py::test_random_shape_nnz[0.5-shape0] sparse/tests/test_dok.py::test_random_shape_nnz[0.5-shape1] sparse/tests/test_dok.py::test_random_shape_nnz[0.5-shape2] sparse/tests/test_dok.py::test_random_shape_nnz[0.7-shape0] sparse/tests/test_dok.py::test_random_shape_nnz[0.7-shape1] sparse/tests/test_dok.py::test_random_shape_nnz[0.7-shape2] sparse/tests/test_dok.py::test_convert_to_coo sparse/tests/test_dok.py::test_convert_from_coo sparse/tests/test_dok.py::test_convert_from_numpy sparse/tests/test_dok.py::test_convert_to_numpy sparse/tests/test_dok.py::test_construct[2-data0] sparse/tests/test_dok.py::test_construct[shape1-data1] sparse/tests/test_dok.py::test_construct[shape2-data2] sparse/tests/test_dok.py::test_getitem[0.1-shape0] sparse/tests/test_dok.py::test_getitem[0.1-shape1] sparse/tests/test_dok.py::test_getitem[0.1-shape2] sparse/tests/test_dok.py::test_getitem[0.3-shape0] sparse/tests/test_dok.py::test_getitem[0.3-shape1] sparse/tests/test_dok.py::test_getitem[0.3-shape2] sparse/tests/test_dok.py::test_getitem[0.5-shape0] sparse/tests/test_dok.py::test_getitem[0.5-shape1] sparse/tests/test_dok.py::test_getitem[0.5-shape2] sparse/tests/test_dok.py::test_getitem[0.7-shape0] sparse/tests/test_dok.py::test_getitem[0.7-shape1] sparse/tests/test_dok.py::test_getitem[0.7-shape2] sparse/tests/test_dok.py::test_setitem[shape2-index2-value2] sparse/tests/test_dok.py::test_setitem[shape6-index6-value6] sparse/tests/test_dok.py::test_setitem[shape7-index7-value7] sparse/tests/test_dok.py::test_setitem[shape8-index8-value8] sparse/tests/test_dok.py::test_setitem[shape10-index10-value10] sparse/tests/test_dok.py::test_setitem[shape12-index12-value12] sparse/tests/test_dok.py::test_default_dtype sparse/tests/test_dok.py::test_int_dtype sparse/tests/test_dok.py::test_float_dtype sparse/tests/test_dok.py::test_set_zero
sparse/coo.py
sparse/coo.py