Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: New challenge! Minimizing the amount of 'unnecessary memory' !
Date: Mon, 14 Mar 2011 05:49:04 +0000 (UTC)
Organization: Boeing Co
Lines: 7
Message-ID: <ilka8g$j0e$1@fred.mathworks.com>
References: <ilbujg$rbl$1@fred.mathworks.com> <ilj63l$kr6$1@fred.mathworks.com> <iljv48$pkf$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1300081744 19470 172.30.248.38 (14 Mar 2011 05:49:04 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 14 Mar 2011 05:49:04 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 756104
Xref: news.mathworks.com comp.soft-sys.matlab:715606

"Nike Dattani" <dattani.nike@gmail.com> wrote in message <iljv48$pkf$1@fred.mathworks.com>...
> 
> I was actually about to try writing a MEX routine in FORTRAN since array slicing can be done in FORTRAN , and that way I could hopefully avoid the for loops ...

Array slicing in Fortran simply means that the compiler will write the for loops (or do loops) in the background for you, and will most likely do it in a manner that is efficient for memory access. But it doesn't necessarily mean that it will run any faster than if you write the for loops (or do loops) manually.

James Tursa