scipy/scipy — pull request #167 by dlaxalde (2012-02-20 19:02:04+00:00)
Title: ENH: sparse.diags accepts one diagonal

This allows single diagonal matrices to be constructed as
`diags([1, 2], 3)` instead of `diags([[1, 2]], [3])` or
`diags([[1, 2]], 3)` (which still work though).
This is also more consistent with numpy.diag.