gradient: Compute gradient
Description
Evaluates the gradient of a vector of array of rank 2 or 3
Usage
gradient(f, circular = FALSE)
Value
returns a list with the different components of the gradient; each component has the same dimension as f.
Arguments
- f
vector or array of rank 2 or 3
- circular
logical scalar or vector specifying whether periodic boundaries are used along each dimension