[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: limit on number of matrices?
From: |
Mirek Kwasniak |
Subject: |
Re: limit on number of matrices? |
Date: |
Mon, 18 Mar 2002 18:43:55 +0100 |
User-agent: |
Mutt/1.3.27i |
On Sat, Mar 16, 2002 at 12:40:14PM -0600, Mike Miller wrote:
> Obviously, availability of memory limits the total size of
> arrays/matrices/vectors that can be used by Octave. But is there an upper
> limit on the number of matrices that can be defined? For example, if I
> have plenty of memory and I want to run an Octave job that will create
> 50,000 small matrices and manipulate them, will I have a problem?
Hi, I don't see that is a problem. It may depend on your system resourses.
I stressed my 1GB Athlon 1600+ with 150,000 matrices(2000,1) = 16KB each :)
octave2.1:1> tic,for i=1:150000;eval(sprintf('a%d=rand(2000,1);',i));end,toc
ans = 130.96 <--- seconds
octave2.1:2> a1(1:5)',a150000(1:5)'
ans =
0.326492 0.102862 0.690691 0.701181 0.019097
ans =
0.64449 0.17821 0.88323 0.32264 0.94248
octave2.1:6> 150000*2000*8/(1024^2)
ans = 2288.8 <--- MiB
Mem: 901360K total, 898140K used, 3220K free, 1020K buffers
Swap: 2097136K total, 1562620K used, 534516K free, 8292K cached
PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME COMMAND
6682 test1 17 0 2317M 833M 13092 S 0.0 94.6 1:11 octave2.1
Mirek
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------