pfocal: Fast Convolution of Matrices

Provides functions to create and apply convolution kernels to rectangular data (matrix, raster). Implements calculations of convolutions in parallel, emphasizing performance over convolution function diversity. Moving window calculations are common in many fields, from image processing to raster data manipulation. The process of ingesting values in the neighborhood of a each cell in a grid, passing them through a function, and returning a reduced value, is embarrassingly parallel. This package implements this with parallel C code. In doing so, it provides a much faster option than other similarly aimed packages and functions.

Version: 1.0.0
Depends: R (≥ 4.0.0)
Imports: Rcpp, stats, methods
LinkingTo: Rcpp
Suggests: testthat (≥ 3.0.0), starsExtra, raster, terra, covr, knitr, rmarkdown, microbenchmark, stars
Published: 2022-06-17
Author: Griffin Barrett [aut], Valentin Lucet [aut], Josie Hughes [aut, cre], Her Majesty the Queen in Right of Canada, as represented by the Minister of Environment and Climate Change [cph]
Maintainer: Josie Hughes < at>
License: GPL-3
NeedsCompilation: yes
Materials: README NEWS
CRAN checks: pfocal results


Reference manual: pfocal.pdf
Vignettes: Getting_started


Package source: pfocal_1.0.0.tar.gz
Windows binaries: r-devel:, r-release:, r-oldrel:
macOS binaries: r-release (arm64): pfocal_1.0.0.tgz, r-oldrel (arm64): pfocal_1.0.0.tgz, r-release (x86_64): not available, r-oldrel (x86_64): not available


Please use the canonical form to link to this page.