broadcast: Broadcasted Array Operations Like 'NumPy'

Implements efficient 'NumPy'-like broadcasted operations for atomic and recursive arrays. Besides linking to 'Rcpp', 'broadcast' does not use any external libraries in any way; 'broadcast' was essentially made from scratch and can be installed out-of-the-box. The implementations available in 'broadcast' include, but are not limited to, the following. 1) Broadcasted element-wise operations on any 2 arrays; they support a large set of relational, arithmetic, Boolean, string, and bit-wise operations. 2) A faster, more memory efficient, and broadcasted abind-like function, for binding arrays along an arbitrary dimension. 3) Broadcasted ifelse-like, and apply-like functions. 4) Casting functions, that cast subset-groups of an array to a new dimension, cast nested lists to dimensional lists, and vice-versa. 5) A few linear algebra functions for statistics. The functions in the 'broadcast' package strive to minimize computation time and memory usage (which is not just good for efficient computing, but also for the environment).

Getting started

Package details

AuthorTony Wilkes [aut, cre, cph] (ORCID: <https://orcid.org/0000-0001-9498-8379>)
MaintainerTony Wilkes <tony_a_wilkes@outlook.com>
LicenseMPL-2.0
Version0.1.3
URL https://github.com/tony-aw/broadcast https://tony-aw.github.io/broadcast/
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("broadcast")

Try the broadcast package in your browser

Any scripts or data that you put into this service are public.

broadcast documentation built on Sept. 15, 2025, 5:08 p.m.