scikit-learn/scikit-learn — pull request #410 by larsmans (2011-10-21 11:49:27+00:00)
Title: ENH accept matrix input throughout

Simple solution: replace `np.asanyarray` with `np.asarray` throughout. This does not copy its input:

>>> X = np.matrix(np.arange(10))
>>> Y = np.asarray(X)
>>> Y.base is X
True

All tests pass. Added some tests for the `utils` module.