I would like to be able to pass a particular function to another function so that I may call that specific function from within the function it was passed to, i.e.:
[tt]double func2(int a,long b,double c);
double *func1(long a,long b,*func2(...))
{
...;
func2(...);
..;
}[/tt]
How does one go about this?
I am trying to make a function that calculates the chi-squared gradient and hessian matrix for the coefficients of some non-linear function. I would like to be able to pass the non-linear function to the function that finds these matrices.
[tt]double func2(int a,long b,double c);
double *func1(long a,long b,*func2(...))
{
...;
func2(...);
..;
}[/tt]
How does one go about this?
I am trying to make a function that calculates the chi-squared gradient and hessian matrix for the coefficients of some non-linear function. I would like to be able to pass the non-linear function to the function that finds these matrices.