Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check data is non-empty with
prod(data.shape)
instead of `data.size…
…`. Works with sparse arrays and is somehow faster.
- Loading branch information