[Numpy-discussion] speed of atleast_1d and friends

Gael Varoquaux gael.varoquaux@normalesup....
Tue Aug 4 09:41:01 CDT 2009

On Tue, Aug 04, 2009 at 07:37:03AM -0700, Keith Goodman wrote:
> I'm always amazed at the solutions people come up with on this list.
> So if you send an example, someone might be able to get rid of the
> need for atleast_1d.

On the other hand, it costs almost no time, and makes your API more
robusts (for instance it can be used with numbers as well as arrays).

I am all for abusive use of np.atleast_1d.


More information about the NumPy-Discussion mailing list