[Numpy-discussion] speed of atleast_1d and friends
Emmanuelle Gouillart
emmanuelle.gouillart at normalesup.org
Tue Aug 4 09:03:41 EDT 2009
Hello,
> I am making a lot of use of atleast_1d and atleast_2d in my routines.
> Does anybody know whether this will slow down my code significantly?
if there is no need to make copies (i.e. if you take arrays as
parameters (?)), calls to atleast_1d and atleast_2d should be extremely
fast: it's just a question of creating a different view, I think.
Did you profile your code to check?
Cheers,
Emmanuelle
More information about the NumPy-Discussion
mailing list