On Sun, May 13, 2012 at 3:28 AM, Travis Oliphant <tra...@continuum.io> wrote:
> Another approach would be to introduce a method:
>
> a.diag(copy=False)
>
> and leave a.diagonal() alone.  Then, a.diagonal() could be deprecated over
> 2-3 releases.

This would be a good idea if we didn't already have both
np.diagonal(a) (which is an alias for a.diagonal()) *and* np.diag(a),
which do different things. And the new a.diag() would be different
from the existing np.diag(a)...

-- Nathaniel
_______________________________________________
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to