scipy/scipy — pull request #363 by pv (2012-11-23 01:19:03+00:00)
Title: MAINT: sparse: eye() instead of identity()

sparse.identity() and sparse.eye() are almost the same thing. Confusingly, you cannot call eye() with a single parameter to get a square matrix.

This PR makes eye() accept a single parameter, and implements identity() via it. Also, makes it return dia_matrix by default.

I'm not 100% sure about the depracation. I suppose `identity()` is used by absolutely everyone --- if this causes warnings to pop up, it'll be a nuisance.

http://projects.scipy.org/scipy/ticket/1767