Problems using numarray
sonium at gmail.com
Wed Nov 3 18:08:37 CET 2004
Hi, I am new to numarray and I'm going to use it in a nummerical
computation of planet and probe orbits. There for I created a body
class, representing an gravity affected mass (like a planet or a probe).
Now I have different bodys each with it's own position, velocity and
mass that pull each other together by gravity. Based on the previous
position and velocity I'm now calculating the positions and velocity for
the next timeframe and so on... So I get a quite high amout of data
because i have to store (number-of-bodys)*(number-of-timeframe) objects.
Now, how can I use a numaray to store the body objects? I read the docu,
but didn't figure out how to solve my problem. In C++ I just created a
multidimensilnal array like data = new body[objects*timeframes] and I'm
looking for something synonymous with numarray.
More information about the Python-list