scikit-learn/scikit-learn — pull request #2849 by mattilyra (2014-02-11 17:03:24+00:00)
Title: Added support for sparse matrices in manhattan_distances

I wasn't sure if in the case where the size of the broadcasted dense array would exceed the memory limit the sparse method should be used too. It seems like the correct thing to do, but I didn't want to change the implementation of that before asking.

```python
...
if temporary_size > size_threshold and sum_over_features:
# Broadcasting the full thing would be too big: it's on the order
# of magnitude of the gigabyte
# should this also use the sparse method?
...
```