> PyArray_FromDims is backward compatible Numeric API which did not
> support 64-bit correctly.
>
> PyArray_SimpleNew is the equivalent that accepts 64-bit dimensions
> information and is what you should be using.
>
ok, excellent !
thanks for the answer.
yves
> -Travis O.
>
> __
Matthieu Brucher wrote:
> Hi,
>
> What type is pos->dimensions in your case ? It may be long (64bits
> long) instead of the expected int (32bits) or something like that ?
>
yes,
pos->dimensions is a 64bits long
while PyArray_FromDims expects 32bits int.
Why is it so ?
> Matthieu
>
> 2008/2/8,
Dear List,
I'm computing the cross product of positions and velocities of n points
in a 3d space.
Using the numpy function "cross", this can be written as :
n=1000
pos = random.random([n,3])
vel = random.random([n,3])
cross(pos,vel)
I compare the computation time needed with a C-api I wrote (de