Re: outer product implementation

David Bateman <[email protected]> Mon, 11 Sep 2006 21:40:56 +0200
Newsgroups gmane.comp.gnu.octave.sources
Organization Motorola CRM
Message-ID <[email protected]>
Muthiah Annamalai wrote:

> David,
> I think I didnt mention the kind of functionality I wanted: 
> To evaluate functions when 
> 
> 1. Passed by @ sign
> 2. Passed by function name (string)
> 3. Passed by inline function code
> 
> 
> Now the code you point out to me handles the inline function code.
> 
> But I was actually mentioning #2 in the list.
> 

Check again. There is functionally no difference between inline and
function handles in an oct-file (as in fact one class is derived from
the other). So the function handles and inline functions are both
handled by the first couple of lines. String args are handled by the
rest of the code.

> I think I will have to use some way to load the function and 
> get a octave_function handle to it, as feval() of this might
> make the process slower than it need to be.
> 
> So Im working on adding the #2 and #3 using your suggested code in
> (quad.cc).

Use the code in the message, as the code in quad.cc assumes that the
function has a single input and output argument..

D.

> 
> Thanks
> Muthu