[SciPy-Dev] scipy.sparse spdiags/dia_matrix additional calling mode

Tony Stillfjord tony at maths.lth.se
Thu Oct 6 09:34:10 EDT 2011


Well, when you put it like that, I guess I agree as well. :)

On Thu, Oct 6, 2011 at 3:31 PM, Jonathan Guyer <guyer at nist.gov> wrote:

>
> On Oct 6, 2011, at 9:26 AM, Pauli Virtanen wrote:
>
> > I think adding a new function called `diags` could be justified here.
> > Numpy already has a function called `diag`, and with the new semantics
> > one would have
> >
> >    diags([a, b, c], [i, j, k]) == diag(a, i) + diag(b, j) + diag(c, k)
> >
> > which hangs together nicely.
>
> +1
>
> _______________________________________________
> SciPy-Dev mailing list
> SciPy-Dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scipy-dev/attachments/20111006/34848b97/attachment.html>


More information about the SciPy-Dev mailing list