Skip to contents

compute gradient of Function

Usage

grad(Function)

# S4 method for Function
grad(Function)

Arguments

Function

a Function created by Function:

Value

A R6 object representing the gradient of the Function passed as parameter.

Examples

if (FALSE) {
library(femR)
data("unit_square")
mesh <- Mesh(unit_square)
Vh <- FunctionSpace(mesh)
f <- Function(Vh)
grad_f <- grad(f)
}