Problems using numarray
beliavsky@aol.com
beliavsky at 127.0.0.1
Wed Nov 3 15:11:08 EST 2004
Sonium <sonium at gmail.com> wrote:
>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.
I asked a similar question regarding Numeric a few months ago, with subject
"Numeric array of objects" -- see http://groups.google.com/groups?hl=en&lr=&c2coff=1&selm=3064b51d.0403031508.53498c6f%40posting.google.com
for the thread. Probably the syntax is the same for Numeric and Numarray,
but I have not checked.
----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
More information about the Python-list
mailing list