|Subject:||Re: standalone application (octave to c++): define anonymous function for nonlin_curvefit()|
|Date:||Mon, 28 Jan 2019 08:15:48 -0500|
I have tried to declare:
octave_user_function f = @(p,x) 1-exp(p*x);
but I've got 1) error: stray address@hidden in program and 2) error: ‘p, x’ was not
declared in this scope
Why the octave interpreter doesn't understand @ sign?
How to properly declare an anonymous function or how to write a function
that will return an object octave_user_function?
Should I provide any additional headers (include <???>) when declaring
Maybe there is another way to transfer user function (@(p,x) 1-exp(p*x)) as
an argument for octave::feval?
It would be really great if I could use this function. My ideas for a
solution are exhausted. I need your help.
Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html
|[Prev in Thread]||Current Thread||[Next in Thread]|