Go to the source code of this file.
|
| int | residual (void *p, int n, const double *x, double *fvec, int iflag) |
| |
◆ residual()
| int residual |
( |
void * |
p, |
|
|
int |
n, |
|
|
const double * |
x, |
|
|
double * |
fvec, |
|
|
int |
iflag |
|
) |
| |
Residual function for spectral analysis
- SRMHD requires N=2 rootfind, therefore need to implement the hybrd cminpack multiD Newton solver. Things may get ugly.
- Cant do anything about the arguments of this function, cminpack demands you not enjoy anything it offers...
- Parameters
-
| *p | void pointer to the additional arguments struct, Args |
| n | size of system (n=2 for srmhd) |
| *x | pointer to array containing initial estimate of solution, will also hold solution |
| *fvec | pointer to array to hold residual values. These should be 0 +- tol |
| iflag | Cminpack error flag |
- Note
- For more information regarding the form of this function and its parameters see the URL below
- See also
- Original source