gradient {cooltools}R Documentation

Compute gradient

Description

Evaluates the gradient of a vector of array of rank 2 or 3

Usage

gradient(f, circular = FALSE)

Arguments

f

vector or array of rank 2 or 3

circular

logical scalar or vector specifying whether periodic boundaries are used along each dimension

Value

returns a list with the different components of the gradient; each component has the same dimension as f.

Author(s)

Danail Obreschkow


[Package cooltools version 2.4 Index]