[Numpy-discussion] What is diagonal for nd>2?

Pierre GM pgmdevlist at mailcan.com
Thu Apr 6 15:01:03 EDT 2006


> I would think axes 0 and 1 are the first, not the last two dimensions.  We
> can either change the documentation or change the defaults in the
> oldnumeric.  I would vote for the change in defaults because oldnumeric is
> a compatibility module and should not introduce changes.

So, change the default to:
diagonal(a, offset=0, axis1=-2, axis2=-1) ?

That'd make sense, I'm for that...






More information about the NumPy-Discussion mailing list