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 (http://projects.scipy.org/scipy/ticket/1767).
I'm not 100% sure about the deprecation. I suppose identity() is used by absolutely everyone --- if this causes warnings to pop up, it'll be a nuisance.
MAINT: sparse: refactor identity() into eye()
Makes also identity() return a dia_matrix by default. Closes #1767
MAINT: sparse: use eye() instead of identity() everywhere
DEP: sparse: deprecate identity() over eye()
Looks good. I am -1 on deprecation warnings for identity. With the slightly incompatible behavior of eye in the most recent released version, this could lead to surprise issues for those writing packages compatible with multiple scipy versions. The identity function is a light enough alias that we should keep it around, at least for another couple release cycles.
Merged without deprecation.
ENH: io: support mmapping in wavfile.read (pull request gh-363, Trac #…
Thanks to bemasc for the patch.