lsqfun must calculate the vector of values fix at any point x. (However, if you do not wish to calculate the residuals at a particular x, there is the option of setting a parameter to cause e04fc to terminate immediately.)

Syntax

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

Parameters

iflag
Type: System..::..Int32%
On entry: has a non-negative value.
On exit: if lsqfun resets iflag to some negative number, e04fc will terminate immediately, with ifail set to your setting of iflag.
m
Type: System..::..Int32
On entry: m, the numbers of residuals.
n
Type: System..::..Int32
On entry: n, the numbers of variables.
xc
Type: array<System..::..Double>[]()[][]
On entry: the point x at which the values of the fi 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.

See Also