Sparse arrays in R: the spray package

10/19/2022
by   Robin K. S. Hankin, et al.
0

In this short article I introduce the spray package, which provides some functionality for handling sparse arrays. The package uses the C++ Standard Template Library's map class to store and retrieve elements. One natural application for sparse arrays is multivariate polynomials and I give two examples of the package in use, one drawn from the fields of random walks on lattices and one from the field of recreational combinatorics. The package is available on CRAN at https://CRAN.R-project.org/package=spray.

READ FULL TEXT
research
10/28/2022

Fast multivariate polynomials in R: the mvp package

In this short article I introduce the mvp package, which provides some f...
research
11/08/2022

The free algebra in R

The free algebra is an interesting and useful algebraic object. Here I i...
research
10/08/2022

Disordered vectors in R: introducing the disordR package

Objects in the stl map class of C++ associate a value to each of a set o...
research
07/26/2020

multivar_horner: a python package for computing Horner factorisations of multivariate polynomials

Many applications in the sciences require numerically stable and computa...
research
10/01/2020

Scipp: Scientific data handling with labeled multi-dimensional arrays for C++ and Python

Scipp is heavily inspired by the Python library xarray. It enriches raw ...
research
02/21/2023

Jordan algebra in R

In this short article I introduce the "jordan" package which provides fu...
research
11/14/2019

Thirteen Simple Steps for Creating An R Package with an External C++ Library

We desribe how we extend R with an external C++ code library by using th...

Please sign up or login with your details

Forgot password? Click here to reset