Click or drag to resize

NLFitfdjac2 Method

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.Regression
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public 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
m is a positive integer input variable set to the number of functions.
n  Int32
n is a positive integer input variable set to the number of variables. n must not exceed m.
x  Double
x is an input array of length n containing the parameters.
fvec  Double
fvec is an input array of length m which must contain the functions evaluated at x.
fjac  Double
fjac is an output m by n array which contains the approximation to the Jacobian matrix evaluated at x.
ldfjac  Int32
ldfjac is a positive integer input variable not less than m which specifies the leading dimension of the array fjac.
iflag  Int32
iflag is an integer variable which can be used to terminate the execution of fdjac2. see description of fcn.
epsfcn  Double
epsfcn is an input variable used in determining a suitable step length for the forward-difference approximation. this approximation assumes that the relative errors in the functions are of the order of epsfcn. if epsfcn is less than the machine precision, it is assumed that the relative errors in the functions are of the order of the machine precision.
wa  Double
wa is a work array of length m.
See Also