Path: news.mathworks.com!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!c13g2000cwb.googlegroups.com!not-for-mail
From: beliavsky@aol.com
Newsgroups: comp.soft-sys.matlab
Subject: Re: Numerical recipes in Matlab
Date: 19 Jan 2005 12:32:13 -0800
Organization: http://groups.google.com
Lines: 20
Message-ID: <1106166733.903785.240990@c13g2000cwb.googlegroups.com>
References: <eef9109.-1@webx.raydaftYaTP>
NNTP-Posting-Host: 141.162.101.151
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
X-Trace: posting.google.com 1106166738 10499 127.0.0.1 (19 Jan 2005 20:32:18 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Wed, 19 Jan 2005 20:32:18 +0000 (UTC)
User-Agent: G2/0.2
Complaints-To: groups-abuse@google.com
Injection-Info: c13g2000cwb.googlegroups.com; posting-host=141.162.101.151;
Xref: news.mathworks.com comp.soft-sys.matlab:255293



Brett Shoelson wrote:
>I've found NR (in C/C++, FORTRAN) to be very useful over the years,
and while I have
>heard of the occasional bug, I have not experienced any myself. My
code for
>Lomb-Scargle periodogram analysis (on the FEX) is a direct translation
from
>NR/FORTRAN into ML. And while writing _efficient_ code in ML might not

>always be trivial, translating directly (including lots of unnecessary

>nested for loops, etc.) into mcode is pretty easy.

As I have mentioned here several times, Fortran 90 is an array
language, like Matlab. Currently, if you buy the Fortran version of
Numerical Recipes from http://www.nr.com/com/storefront.html , you get
Fortran 77 and Fortran 90 versions of NR. The F90 version uses array
operations and thus does not have "unnecessary [] nested loops". It
would be much better to convert that to Matlab than the F77 version.