[Numpy-discussion] problem: I get an array that doesn't have a length

Pierre GM pgmdevlist at gmail.com
Wed May 2 14:58:37 EDT 2007


On Wednesday 02 May 2007 14:45:40 Christopher Barker wrote:
> Pierre GM wrote:
> > If you need your inputs to be array or scalar and stay that way
>
> It didn't sound like the OP wanted that. I suspect that what is wanted
> if for to always be a 1-d array (i.e. vector). To do that, I'd do:

I beg to differ: your option is equivalent to (and I suspect a bit slower 
than) atleast_1d, which is what the OP complained about...



More information about the NumPy-Discussion mailing list