func2 Abstract Interface

abstract interface
public subroutine func2(m, n, x, fvec, iflag)

Arguments

TypeIntentOptionalAttributesName
integer, intent(in) :: m

the number of functions.

integer, intent(in) :: n

the number of variables.

real(kind=wp), intent(in) :: x(n)

independent variable vector

real(kind=wp), intent(out) :: fvec(m)

value of function at x

integer, intent(inout) :: iflag

the value of iflag should not be changed unless the user wants to terminate execution of lmdif. in this case set iflag to a negative integer.

Description

user-supplied subroutine for fdjac2, lmdif, and lmdif1