gradientfcn Interface

interface
public subroutine gradientfcn(x, g, args)

Arguments

Type IntentOptional Attributes Name
real(kind=real64), intent(in), dimension(:) :: x

An N-element array containing the independent variables.

real(kind=real64), intent(out), dimension(:) :: g

An N-element array where the gradient vector will be written as output.

class(*), intent(inout), optional :: args

An optional argument to allow the user to communicate with the routine.

Description

Describes a routine capable of computing the gradient vector of an equation of N variables.