derivative_cpp: Efficient Numerical Derivative for Matrix (Row-wise)

View source: R/RcppExports.R

derivative_cppR Documentation

Efficient Numerical Derivative for Matrix (Row-wise)

Description

Computes the first derivative using centered differences, mirroring sfsmisc::D1tr.

Usage

derivative_cpp(x, gridpts, n_cores = 1L)

Arguments

x

Numeric Matrix (smoothed values)

gridpts

Grid points corresponding to columns of x

n_cores

Number of cores to use


ICEbox documentation built on Jan. 12, 2026, 9:06 a.m.