gradient: Compute gradient

View source: R/gradient.R

gradientR 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


obreschkow/cooltools documentation built on Nov. 16, 2024, 2:46 a.m.