[Numpy-discussion] Functions for indexing into certain parts of an array (2d)

Fernando Perez fperez.net at gmail.com
Sat Jun 6 14:31:35 EDT 2009


On Sat, Jun 6, 2009 at 8:27 AM, Keith Goodman<kwgoodman at gmail.com> wrote:
> What do you think of passing in the array a instead of n and ndim
> (diag_indices_list_2 below)?

Yes, I thought of that too.  I see use cases for both though.  Would
people prefer both, or rather a flexible interface that tries to
introspect the inputs and do both in one call?

Cheers,

f



More information about the NumPy-Discussion mailing list