[Numpy-discussion] observations

Tim Hochberg tim.hochberg at cox.net
Sun Apr 2 08:52:09 CDT 2006

I've been doing a *lot* of playing with numpy over the last several 
days, so expect various observations to trickle from my abode over the 
next week or so. Here's the first installment.

* tostring probably needs the order flag. I think you want  the string 
generated from a multidimensional array in Fortran and C order to differ.

* With the evolution of the order flag, ascontiguousarray is probably 
redundant, scarcely after it was added.

    b = asarray(a, order="C")

Is actually clearer in intent than:

    b = ascontiguousarray(a)

Does the latter leave a contiguous, Fortran order array alone? That's 
probably almost never what one wants. Unless your working with Fortran 
arrays, in which case the opposite ambiguity applies.



More information about the Numpy-discussion mailing list