newbie question: how to read back the dictionary from a file?

2007-04-16 Thread lancered
Hi Dear all, I have some data here in the form of a dictionary, called "vdic". Then I write them to a data file "f" using the write function as f.write(str(vdic)). The keys of this dictionary are integers and values are float numbers. Something like this: { 1: 0.00951486513347, 2: 0.0388123556

Re: Newbie Question about sequence multiplication

2007-04-08 Thread lancered
On Apr 5, 12:19 am, "Scott" <[EMAIL PROTECTED]> wrote: > Alright, so I've been trying to teach myself Python which, when compared to > my attempt to learn C++, is going pretty well. > But I've come across an issue that I can't figure out, so I figured I'd ask > the pro's. > > Now it looks pretty we

Re: An error of matrix inversion using NumPy

2007-04-04 Thread lancered
there any tricks for me to be able to deal with this matrix correctly with NumPy? On Apr 4, 3:58 pm, Robin Becker <[EMAIL PROTECTED]> wrote: > lancered wrote: > > Hi dear all, > .. > > matrices are correct. > > >So, can you tell me what goes wrong?

An error of matrix inversion using NumPy

2007-04-04 Thread lancered
Hi dear all, I am using Python2.4.2+NumPy1.0.1 to deal with a parameter estimation problem with the least square methods. During the calculations, I use NumPy package to deal with matrix operations, mostly matrix inversion and trasposition. The dimentions of the matrices used are about 29x

An error of matrix inversion using NumPy

2007-04-04 Thread lancered
Hi dear all, I am using Python2.4.2+NumPy1.0.1 to deal with a parameter estimation problem with the least square methods. During the calculations, I use NumPy package to deal with matrix operations, mostly matrix inversion and trasposition. The dimentions of the matrices used are about 29x