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$>
References: <ilbujg$rbl$> <ilj63l$kr6$> <iljv48$pkf$>
Reply-To: <HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: 1300081744 19470 (14 Mar 2011 05:49:04 GMT)
NNTP-Posting-Date: Mon, 14 Mar 2011 05:49:04 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 756104
Xref: comp.soft-sys.matlab:715606

"Nike Dattani" <> wrote in message <iljv48$pkf$>...
> 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