This subroutine computes a forward-difference approximation
to the m by n Jacobian matrix associated with a specified
problem of m functions in n variables.
Namespace: Altaxo.Calc.RegressionAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3448.0 (4.8.3448.0)
Syntaxpublic static void fdjac2(
NLFitLMFunction fcn,
int m,
int n,
double[] x,
double[] fvec,
double[] fjac,
int ldfjac,
ref int iflag,
double epsfcn,
double[] wa
)
Parameters
- fcn NLFitLMFunction
- User-supplied subroutine which calculates the functions.
- m Int32
- A positive integer input variable set to the number of functions.
- n Int32
- A positive integer input variable set to the number of variables. n must not exceed m.
- x Double
- An input array of length n containing the parameters.
- fvec Double
- An input array of length m containing the function values evaluated at x.
- fjac Double
- An output array (m-by-n, column-major) that receives the Jacobian approximation evaluated at x.
- ldfjac Int32
- A positive integer input variable not less than m specifying the leading dimension of fjac.
- iflag Int32
- An integer variable which can be used to terminate the execution of fdjac2(NLFitLMFunction, Int32, Int32, Double, Double, Double, Int32, Int32, Double, Double); see description of fcn.
- epsfcn Double
-
Input variable used to determine a suitable step length for the forward-difference approximation.
If less than machine precision, machine precision is assumed.
- wa Double
- Work array of length m.
See Also