arrays
Rahul Garg
codedivine at gmail.com
Wed Nov 17 04:01:51 EST 2004
Hi.
Thanks for the help. Its really simple and i shud have thought it
myself.
Some clarifications :
1. I will mostly be storing floating point numbers in 2 dimensional
arrays which i will pass to a custom module written in C. The
application is for scientific computing purposes.I just need python +
wxPython for the GUI.
2.I am not using Numarray because i dont expect to do many operations
on the matrices in Python itself. Most of that stuff will be handled
in my C module.
The decision of not doing the matrix operations in Python is because
most of the C code is already ready. Though it is written as
standalone command line app currently , converting it into an
extension module shudnt be much of a problem.
Rahul
John Hunter <jdhunter at ace.bsd.uchicago.edu> wrote in message news:<mailman.6387.1100545114.5135.python-list at python.org>...
> >>>>> "Rahul" == Rahul Garg <codedivine at gmail.com> writes:
>
> Rahul> Hi. Is there someway i can get something similar to
> Rahul> multi-dimensional arrays in python.I dont want to use
> Rahul> Numarray
>
> Yes, you can use lists of lists for example.
>
> x = [ [None for i in range(10)] for j in range (12)]
> x[1][2] = 1
>
> But it would help if you stated what your requirements are for the
> multi-dim array, what kind of objects you want to store in them, what
> kind of operations you need to be able to do, what your performance
> requirements are, and why you don't want to use numarray or Numeric
> for that matter.
>
>
> JDH
More information about the Python-list
mailing list