lsqfun must calculate the vector of values fix and their first derivatives fixj at any point x. (The minimization methods mentioned in [Description] give you the option of resetting a parameter to terminate immediately. e04ya will also terminate immediately, without finishing the checking process, if the parameter in question is reset.)

Syntax

C#
public delegate void E04YA_LSQFUN(
	ref int iflag,
	int m,
	int n,
	double[] xc,
	double[] fvec,
	double[,] fjac
)
Visual Basic
Public Delegate Sub E04YA_LSQFUN ( _
	ByRef iflag As Integer, _
	m As Integer, _
	n As Integer, _
	xc As Double(), _
	fvec As Double(), _
	fjac As Double(,) _
)
Visual C++
public delegate void E04YA_LSQFUN(
	int% iflag, 
	int m, 
	int n, 
	array<double>^ xc, 
	array<double>^ fvec, 
	array<double,2>^ fjac
)
F#
type E04YA_LSQFUN = 
    delegate of 
        iflag : int byref * 
        m : int * 
        n : int * 
        xc : float[] * 
        fvec : float[] * 
        fjac : float[,] -> unit

Parameters

iflag
Type: System..::..Int32%
On entry: to lsqfun, iflag will be set to 2.
On exit: if you reset iflag to some negative number in lsqfun and return control to e04ya, the method will terminate immediately with ifail set to your setting of iflag.
m
Type: System..::..Int32
On entry: the numbers m of residuals.
n
Type: System..::..Int32
On entry: the numbers n of variables.
xc
Type: array<System..::..Double>[]()[][]
On entry: x, the point at which the values of the fi and the fixj are required.
fvec
Type: array<System..::..Double>[]()[][]
On exit: unless iflag is reset to a negative number, fvec[i-1] must contain the value of fi at the point x, for i=1,2,,m.
fjac
Type: array<System..::..Double,2>[,](,)[,][,]
On exit: unless iflag is reset to a negative number, fjac[i-1,j-1] must contain the value of fixj at the point x, for i=1,2,,m and j=1,2,,n.

See Also