Package: numops 1.0.0

numops: Lightweight Numerical Operations

Provides dependency-free helpers for recurring numerical tasks on vectors, matrices, and arrays. Operations cover bounds, interpolation, remapping, division, Euclidean norms, normalization, and adjacent differences. Multi-input operations use strict scalar recycling, reject incompatible lengths, and preserve names, dimensions, and dimension names where applicable. Explicit handling of invalid intervals, zero denominators, and zero norms gives consistent behavior for common edge cases.

Authors:Joao Claudio Macosso [aut, cre]

numops_1.0.0.tar.gz
numops_1.0.0.zip(r-4.7-any)numops_1.0.0.zip(r-4.6-any)numops_1.0.0.zip(r-4.5-any)
numops_1.0.0.tgz(r-4.6-any)numops_1.0.0.tgz(r-4.5-any)
numops_1.0.0.tar.gz(r-4.7-any)numops_1.0.0.tar.gz(r-4.6-any)
numops_1.0.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION
card.svg |card.png
numops/json (API)

# Install 'numops' in R:
install.packages('numops', repos = c('https://macosso.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/macosso/numops/issues

On CRAN:

Conda:

4.30 score 1 stars 5 scripts 369 downloads 12 exports 0 dependencies

Last updated from:d78f66c62d. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK102
source / vignettesOK175
linux-releaseOK100
macos-releaseOK153
macos-oldrelOK162
windows-develOK61
windows-releaseOK64
windows-oldrelOK47
wasm-releaseOK75

Exports:adjacent_differenceclampclamp01divide_orin_rangeinv_lerpl2_normlerpmidpointnormalize_l2remapwrap

Dependencies:

Clamp, Test, and Wrap Numeric Values in R
Choose the right operation | Clamp values in R | Clamp values to a numeric interval | Preserve matrix and array shape | Clamp probabilities to zero and one | Test whether values are within a range | Wrap angles and periodic values in R | Wrap angles to one rotation | Wrap clock times and phases | Visualize periodic wrapping | Scalar recycling and vectorized bounds | Missing and infinite values | A validation-and-correction workflow | Interval semantics at a glance

Last update: 2026-08-26
Started: 2026-08-26

Common Numerical Operations in R with numops
Why use numops? | Quick reference | Clamp and wrap values in R | Clamp values to an interval | Test whether values are within a range | Wrap angles and periodic values | Linear interpolation and range remapping in R | Interpolate between endpoints | Remap one interval to another | Calculate midpoints safely | Handle division by zero in R | Normalize vectors, matrices, and arrays | Calculate the L2 norm of a vector | Normalize a vector to unit length | Normalize matrix rows and columns | Handle zero-length slices | Calculate adjacent differences | Recycling and output shape | A complete data-preparation example | Summary

Last update: 2026-08-26
Started: 2026-08-26