Re: Numerical Recipes [message #9979 is a reply to message #9883] |
Wed, 17 September 1997 00:00  |
David Foster
Messages: 341 Registered: January 1996
|
Senior Member |
|
|
Dave Klassen wrote:
>
> I've been looking for a nice easy way to maximize a fairly complex
> function using IDL. I know that there are many Numerical Recipes
> routines built into IDL, but not the one I need. I've used the
> NR routine called AMOEBA before to minimize a chi-squared
> function and now I'd like to try to use it to maximize a
> correlation function.
>
> I was wondering if there were some repository of IDL translations
> of the NR routines that are *not* built in. I'd really like to
> avoid translating the FORTRAN code I have if possible.
>
This might not appeal to you, but one alternative would be to
modify the Fortran code slightly so you can call it from IDL
using CALL_EXTERNAL. I don't think you would want to translate
the NR routines to IDL, as there would be a significant performance
cost for most of them.
Dave
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
David S. Foster Univ. of California, San Diego
Programmer/Analyst Brain Image Analysis Laboratory
foster@bial1.ucsd.edu Department of Psychiatry
(619) 622-5892 8950 Via La Jolla Drive, Suite 2240
La Jolla, CA 92037
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
|
|
|