Broadcasted Array Operations Like 'NumPy'

Implements efficient 'NumPy'-like broadcasted operations for atomic and recursive arrays. In the context of operations involving 2 (or more) arrays, “broadcasting” (AKA singleton expansion) refers to efficiently recycling array dimensions, without making copies. 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 better for efficient computing, but also for the environment).


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("broadcast")

0.1.9.8 by Tony Wilkes, 9 days ago


https://github.com/tony-aw/broadcast, https://tony-aw.github.io/broadcast/


Report a bug at https://github.com/tony-aw/broadcast/issues/


Browse source code at https://github.com/cran/broadcast


Authors: Tony Wilkes [aut, cre, cph] (ORCID:


Documentation:   PDF Manual  


MPL-2.0 license


Imports Rcpp, methods

Suggests tinytest, abind, roxygen2

Linking to Rcpp


See at CRAN