Path: news.mathworks.com!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!r3g2000vbp.googlegroups.com!not-for-mail
From: Rune Allnor <allnor@tele.ntnu.no>
Newsgroups: comp.soft-sys.matlab
Subject: Re: looping/vectorising issue...
Date: Thu, 18 Jun 2009 06:53:09 -0700 (PDT)
Organization: http://groups.google.com
Lines: 13
Message-ID: <12838a49-aac9-48ba-be26-aedd27739a93@r3g2000vbp.googlegroups.com>
References: <gn0vhg$rn$1@fred.mathworks.com> <gn1kct$kd8$1@fred.mathworks.com> 
	<gn3gma$683$1@fred.mathworks.com> <h1d933$sav$1@fred.mathworks.com>
NNTP-Posting-Host: 77.16.167.47
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Trace: posting.google.com 1245333190 16179 127.0.0.1 (18 Jun 2009 13:53:10 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Thu, 18 Jun 2009 13:53:10 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: r3g2000vbp.googlegroups.com; posting-host=77.16.167.47; 
	posting-account=VAp5gAkAAAAmkCze5hvZtMeedpZWNthI
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET 
	CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022),gzip(gfe),gzip(gfe)
Xref: news.mathworks.com comp.soft-sys.matlab:548624


On 18 Jun, 13:40, "Rich " <richardw...@removethishotmail.com> wrote:
> So I hit memory problems as soon as I do this for big matrices (thousands by thousands), maybe I should have mentioned that before.
> So, does anyone have a less memory intensive version?

That's the problem with 'vectorization': You gain some speed at
the expense of memory.

If you're hitting the memory wall, you have two options:

1) Buy a bigger computer.
2) Implement a MEX routine in C or C++.

Rune