Re: [Numpy-discussion] MemoryError for computing eigen-vector on 10, 000*10, 000 matrix

2009-04-29 Thread Zhenxin Zhan
Most of the time, it just needs the largest or smallest eigenvalues/vectors. But unfortunately, it needs more. Thanks. 2009-04-29 Zhenxin Zhan 发件人: Sebastian Walter 发送时间: 2009-04-29 02:17:38 收件人: Discussion of Numerical Python 抄送: 主题: Re: [Numpy-discussion] MemoryError for computin

Re: [Numpy-discussion] MemoryError for computing eigen-vector on 10, 000*10, 000 matrix

2009-04-29 Thread Sebastian Walter
+1 to that Often, one is only interested in the largest or smallest eigenvalues/vectors of a problem. Then the method of choice are iterative solvers, e.g. Lanczos algorithm. If only the largest eigenvalue/vector is needed, you could try the power iteration. On Wed, Apr 29, 2009 at 7:49 AM, Zh

Re: [Numpy-discussion] MemoryError for computing eigen-vector on 10, 000*10, 000 matrix

2009-04-29 Thread Charles R Harris
On Tue, Apr 28, 2009 at 11:49 PM, Zhenxin Zhan wrote: > Thanks. My mistake. > > The os is 32-bit. I am doing a network-simulation for my teacher. The > average degree of the network topology is about 6.0. So I think it is > sparse. > > The paper needs the eigen values and the eigen vectors which

Re: [Numpy-discussion] MemoryError for computing eigen-vector on 10, 000*10, 000 matrix

2009-04-28 Thread David Cournapeau
Zhenxin Zhan wrote: > Thanks for your reply. > My os is Windows XP SP3. I tried to use array(ojb, dtype=float), but > it didn't work. And I tried 'float32' as you told me. And here is the > error message: > File "C:\Python26\Lib\site-packages\numpy\linalg\linalg.py", line 791, > in eig > a, t, resu

Re: [Numpy-discussion] MemoryError for computing eigen-vector on 10, 000*10, 000 matrix

2009-04-28 Thread Charles R Harris
2009/4/28 Zhenxin Zhan > Thanks for your reply. > > My os is Windows XP SP3. I tried to use array(ojb, dtype=float), but it > didn't work. And I tried 'float32' as you told me. And here is the error > message: > > > File "C:\Python26\Lib\site-packages\numpy\linalg\linalg.py", line 791, in > e

Re: [Numpy-discussion] MemoryError for computing eigen-vector on 10, 000*10, 000 matrix

2009-04-28 Thread Zhenxin Zhan
Thanks for your reply. My os is Windows XP SP3. I tried to use array(ojb, dtype=float), but it didn't work. And I tried 'float32' as you told me. And here is the error message: File "C:\Python26\Lib\site-packages\numpy\linalg\linalg.py", line 791, in eig a, t, result_t = _convertarray(a) #

Re: [Numpy-discussion] MemoryError for computing eigen-vector on 10, 000*10, 000 matrix

2009-04-28 Thread David Cournapeau
Zhenxin Zhan wrote: > Hello, > > I am a new learner of Numpy. From 'numpybook', I use > numpy.linalg.eig(A) to calculate a matrix 2,000*2,000 and it works well. > > But, when I calculate eigen vector for 10,000*10,000 matrix, there is > 'MemoryError' error message in statement numpy.array(...)

[Numpy-discussion] MemoryError for computing eigen-vector on 10, 000*10, 000 matrix

2009-04-28 Thread Zhenxin Zhan
Hello, I am a new learner of Numpy. From 'numpybook', I use numpy.linalg.eig(A) to calculate a matrix 2,000*2,000 and it works well. But, when I calculate eigen vector for 10,000*10,000 matrix, there is 'MemoryError' error message in statement numpy.array(...). My laptop has 4GB memory. How