jacobian_f Interface

interface
private subroutine jacobian_f(me, x, dx, jac, fx)

Arguments

Type IntentOptional Attributes Name
class(numdiff_type), intent(inout) :: me
real(kind=wp), intent(in), dimension(:) :: x

vector of variables (size n)

real(kind=wp), intent(in), dimension(me%n) :: dx

absolute perturbation (>0) for each variable

real(kind=wp), intent(out), dimension(:) :: jac

sparse jacobian vector (size num_nonzero_elements)

real(kind=wp), intent(in), optional, dimension(me%m) :: fx

function value at x, if already known

Description

Actual function for computing the Jacobian called by compute_jacobian.