6 Apr
2006
6 Apr
'06
8:01 a.m.
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...