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... _______________________________________________ Numpy-discussion mailing list [email protected] http://projects.scipy.org/mailman/listinfo/numpy-discussion
