help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Calling octave functions from oct-files


From: John W. Eaton
Subject: Calling octave functions from oct-files
Date: Sun, 13 Jan 2008 01:30:09 -0500

On 13-Jan-2008, Evan wrote:

| I am converting some part of my program from octave scripts to
| oct-files in order to improve performance. I find that I have to call
| octave functions in a for loop. And if I use "feval" to do this, it
| consumes a lot of time. The result is that the oct-file is even slower
| than the octave script. So I wonder if there is an another way to call
| octave functions. For example, can I get the pointer to the function,
| then just use (*p)(args) to call the function?

No.

Maybe you could give a complete (but short) example that shows what
you are trying to do?  I don't think feval from a .oct file should be
slower than running an interpreted script.

jwe


reply via email to

[Prev in Thread] Current Thread [Next in Thread]