Skip to content

broadcast

Broadcasted Array Operations Like 'NumPy'

v0.1.8 · Feb 20, 2026 · MPL-2.0

Description

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).

Downloads

337

Last 30 days

11499th

836

Last 90 days

2.1K

Last year

Trend: -5.6% (30d vs prior 30d)

CRAN Check Status

2 NOTE
12 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 NOTE
r-oldrel-macos-x86_64 NOTE
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK
Check details (2 non-OK)
NOTE r-oldrel-macos-arm64

installed package size

installed size is  9.4Mb
  sub-directories of 1Mb or more:
    libs   7.4Mb
NOTE r-oldrel-macos-x86_64

installed package size

installed size is 10.4Mb
  sub-directories of 1Mb or more:
    libs   8.4Mb

Check History

NOTE 12 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026
NOTE r-oldrel-macos-arm64

installed package size

installed size is  9.4Mb
  sub-directories of 1Mb or more:
    libs   7.4Mb
NOTE r-oldrel-macos-x86_64

installed package size

installed size is 10.4Mb
  sub-directories of 1Mb or more:
    libs   8.4Mb

Dependency Network

Dependencies Reverse dependencies Rcpp broadcast

Version History

new 0.1.8 Mar 10, 2026
updated 0.1.8 ← 0.1.7 diff Feb 19, 2026
updated 0.1.7 ← 0.1.6.1 diff Dec 13, 2025
updated 0.1.6.1 ← 0.1.5.3 diff Nov 8, 2025
updated 0.1.5.3 ← 0.1.5.1 diff Oct 9, 2025
updated 0.1.5.1 ← 0.1.5 diff Oct 3, 2025
updated 0.1.5 ← 0.1.3 diff Oct 1, 2025
new 0.1.3 Sep 14, 2025