minpack_hybrj1 Subroutine

public subroutine minpack_hybrj1(fcn, n, x, fvec, fjac, ldfjac, tol, info, wa, lwa, udata) bind(c)

Arguments

TypeIntentOptionalAttributesName
procedure(minpack_fcn_hybrj) :: fcn
integer(kind=c_int), value:: n
real(kind=c_double), intent(inout) :: x(n)
real(kind=c_double), intent(out) :: fvec(n)
real(kind=c_double), intent(out) :: fjac(ldfjac,n)
integer(kind=c_int), value:: ldfjac
real(kind=c_double), value:: tol
integer(kind=c_int), intent(out) :: info
real(kind=c_double), intent(inout) :: wa(lwa)
integer(kind=c_int), value:: lwa
type(c_ptr), value:: udata

Calls

proc~~minpack_hybrj1~~CallsGraph proc~minpack_hybrj1 minpack_hybrj1 proc~hybrj1 hybrj1 proc~minpack_hybrj1->proc~hybrj1 proc~hybrj hybrj proc~hybrj1->proc~hybrj proc~dogleg dogleg proc~hybrj->proc~dogleg proc~r1updt r1updt proc~hybrj->proc~r1updt proc~qrfac qrfac proc~hybrj->proc~qrfac proc~qform qform proc~hybrj->proc~qform proc~enorm enorm proc~hybrj->proc~enorm proc~r1mpyq r1mpyq proc~hybrj->proc~r1mpyq proc~dogleg->proc~enorm proc~qrfac->proc~enorm

Contents

Source Code


Source Code

    subroutine minpack_hybrj1(fcn, n, x, fvec, fjac, ldfjac, tol, info, wa, lwa, udata) &
            & bind(c)
        procedure(minpack_fcn_hybrj) :: fcn
        integer(c_int), value :: n
        integer(c_int), value :: ldfjac
        integer(c_int), intent(out) :: info
        integer(c_int), value :: lwa
        real(c_double), value :: tol
        real(c_double), intent(inout) :: x(n)
        real(c_double), intent(out) :: fvec(n)
        real(c_double), intent(out) :: fjac(ldfjac, n)
        real(c_double), intent(inout) :: wa(lwa)
        type(c_ptr), value :: udata

        call hybrj1(wrap_fcn, n, x, fvec, fjac, ldfjac, tol, info, wa, lwa)

    contains
        subroutine wrap_fcn(n, x, fvec, fjac, ldfjac, iflag)
            integer, intent(in) :: n
            real(wp), intent(in) :: x(n)
            integer, intent(in) :: ldfjac
            real(wp), intent(inout) :: fvec(n)
            real(wp), intent(inout) :: fjac(ldfjac, n)
            integer, intent(inout) :: iflag

            call fcn(n, x, fvec, fjac, ldfjac, iflag, udata)
        end subroutine wrap_fcn
    end subroutine minpack_hybrj1