grad_func_sparse Interface

interface
private subroutine grad_func_sparse(me, x, g)

Arguments

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

sparse jacobian. length is n_nonzeros

Description

compute the gradient of the function (Jacobian). Sparse version.