scipy/scipy — pull request #3524 by larsmans (2014-04-05 13:37:03+00:00)
Title: ENH: sparse: add count_nonzero method

Here's a `count_nonzero` method for sparse matrices, as well as some better docs for `getnnz`, as discussed at #3343. It doesn't entirely fix that issue, and I'm not actually going to try to do that in a single PR.

Ping @argriffing, @chebee7i, @jnothman.