comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Alternative to EXECUTE?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: alternative to execute [message #47200 is a reply to message #37191] Tue, 31 January 2006 18:22 Go to previous messageGo to previous message
Ken Mankoff is currently offline  Ken Mankoff
Messages: 158
Registered: February 2000
Senior Member
On Tue, 31 Jan 2006, greg michael wrote:
> I'm trying to think up a good way to implement a user-defined
> function which would run in the IDL VM. The function might involve
> any of about 300 similar 2-d arrays, each of which is quite
> expensive to generate. So I thought to obtain the function as a
> string, scan it to see which arrays are needed, generate them, and
> then apply the function with 'execute'. But 'execute' is excluded
> from the VM.
>
> A typical function might look like:
>
> result = b123 / b100 - .9 * b050 / b035
>
> Without execute, I can only think to attempt to write some kind of
> arithmetic interpreter. Would anyone have a suggestion for a way
> to get IDL to do this more directly?
>

Dump the data to disk, generate a small PRO that reads in the data,
executes your user function (using execute), and then dumps the
result back to disk, spawn a new 2nd IDL session, not VM, that runs
the generated PRO. As long as it takes less than 7 minutes to run
everything should work. Read back in the results, and continue.

-k.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Multiple Axes
Next Topic: Perpendicular symbol

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 10:10:31 PDT 2025

Total time taken to generate the page: 1.36113 seconds