Package: broadcast 0.1.9

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

Authors:Tony Wilkes [aut, cre, cph]

broadcast_0.1.9.tar.gz
broadcast_0.1.9.zip(r-4.7)broadcast_0.1.9.zip(r-4.6)broadcast_0.1.9.zip(r-4.5)
broadcast_0.1.9.tgz(r-4.6-x86_64)broadcast_0.1.9.tgz(r-4.6-arm64)broadcast_0.1.9.tgz(r-4.5-x86_64)broadcast_0.1.9.tgz(r-4.5-arm64)
broadcast_0.1.9.tar.gz(r-4.7-arm64)broadcast_0.1.9.tar.gz(r-4.7-x86_64)broadcast_0.1.9.tar.gz(r-4.6-arm64)broadcast_0.1.9.tar.gz(r-4.6-x86_64)
broadcast_0.1.9.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
broadcast/json (API)
NEWS

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

Bug tracker:https://github.com/tony-aw/broadcast/issues

Uses libs:
  • c++– GNU Standard C++ Library v3

On CRAN:

Conda:

data-manipulationfastversehigh-performancemultidimensional-arraysnumpyscientific-computingcpp

7.42 score 27 stars 632 scripts 214 downloads 47 exports 1 dependencies

Last updated from:6ba97f8704. Checks:13 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK388
linux-devel-x86_64OK373
source / vignettesOK299
linux-release-arm64OK349
linux-release-x86_64OK378
macos-release-arm64OK328
macos-release-x86_64OK559
macos-oldrel-arm64OK309
macos-oldrel-x86_64OK689
windows-develOK408
windows-releaseOK430
windows-oldrelOK457
wasm-releaseOK154

Exports:acastarray2vectoras_boolas_chras_cplxas_dblas_intas_listas_numas_rawas_strbc_dimbc_ifelsebc_strrepbc.bbc.bitbc.cplxbc.dbc.ibc.listbc.rawbc.relbc.strbcapplybcrbcr<-bind_arraybroadcasterbroadcaster<-cast_dim2flatcast_dim2hiercast_hier2dimcast_shallow2atomiccheckNAcheckNULLcinvdropnestsecumprobhier2dimhiernames2dimnameslst.ndimmbroadcastersndimrep_dimsd_lcundimvector2array

Dependencies:Rcpp

Readme and manuals

Help Manual

Help pageTopics
broadcast Package Overviewbroadcast-package aaa00_broadcast_help broadcast broadcast_help
Details on Broadcasted Operatorsaaa01_broadcast_operators broadcast_operators
Details on Casting Functionsaaa02_broadcast_casting broadcast_casting
Simple and Fast Casting/Pivoting of an Arrayacast acast.default
Predict Broadcasted Dimensionsbc_dim
Broadcasted Ifelsebc_ifelse bc_ifelse,ANY-method
Broadcasted strrepbc_strrep bc_strrep,ANY-method
Broadcasted Boolean Operationsbc.b bc.b,ANY-method
Broadcasted Bit-wise Operationsbc.bit bc.bit,ANY-method
Broadcasted Complex Numeric Operationsbc.cplx bc.cplx,ANY-method
Broadcasted Decimal Numeric Operationsbc.d bc.d,ANY-method
Broadcasted Integer Numeric Operations with Extra Overflow Protectionbc.i bc.i,ANY-method
Broadcasted Operations for Recursive Arraysbc.list bc.list,ANY-method
Broadcasted Operations that Take Raw Arrays and Return Raw Arraysbc.raw bc.raw,ANY-method
Broadcasted General Relational Operatorsbc.rel bc.rel,ANY-method
Broadcasted String Operationsbc.str bc.str,ANY-method
Apply Function to Pair of Arrays with Broadcastingbcapply bcapply,ANY-method
Dimensional Binding of Arrays with Broadcastingbind_array
Check or Set if an Array is a Broadcasterbcr bcr<- broadcaster broadcaster<- mbroadcasters
Cast Dimensional List into a Flattened Listcast_dim2flat cast_dim2flat.default
Cast Dimensional List into Hierarchical Listcast_dim2hier cast_dim2hier.default
Cast Hierarchical List into Dimensional listcast_hier2dim cast_hier2dim.default
Cast Shallow List to Atomic Objectcast_shallow2atomic cast_shallow2atomic.default
Efficiently Check for (Non-)Missing Valuescheckmissing checkNA checkNA.default checkNULL checkNULL.default
Drop Redundant List Nestingdropnests dropnests.default
Helper Functions For cast_hier2dimhier2dim hier2dim.default hiernames2dimnames hiernames2dimnames.default
Simple Linear Algebra Functions for Statisticscinv ecumprob linear_algebra_stats sd_lc
Get the Number of Dimensions of an Arraylst.ndim ndim
Replicate Array Dimensionsrep_dim
Atomic and List Type Casting With Names and Dimensions Preservedas_bool as_chr as_cplx as_dbl as_int as_list as_num as_raw as_str typecast
Turn Vector to Array and Vice-Versaarray2vector undim vector2array