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

Tony Stillfjord tony@maths.lth...
Thu Oct 6 08:34:10 CDT 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@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@scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/scipy-dev/attachments/20111006/34848b97/attachment-0001.html 


More information about the SciPy-Dev mailing list