SPArse Matrix
Overview
Set of functions for sparse matrix algebra. Differences with other sparse matrix packages are: (1) we only support (essentially) one sparse matrix format, (2) based on transparent and simple structure(s), (3) tailored for MCMC calculations within G(M)RF. (4) and it is fast and scalable (with the extension package spam64). Documentation about 'spam' is provided by vignettes included in this package, see also Furrer and Sain (2010) doi:10.18637/jss.v036.i10; see 'citation("spam")' for details.
Install
Health
NOTEfor differences from example reference outputr-patched-linux-x86_64, r-release-linux-x86_64, r-release-macos-arm64, r-release-macos-x86_64, r-release-windows-x86_64
r-patched-linux-x86_64, r-release-linux-x86_64, r-release-macos-arm64, r-release-macos-x86_64
Comparing ‘spam-Ex.Rout’ to ‘spam-Ex.Rout.save’: 78,82c78,82 < [7] "cummax" "cummin" "cumprod" "cumsum" "exp" "expm1" < [13] "log" "log10" "log2" "log1p" "cos" "cosh" < [19] "sin" "sinh" "tan" "tanh" "acos" "acosh" < [25] "asin" "asinh" "atan" "atanh" "cospi" "sinpi" < [31] "tanpi" "gamma" "lgamma" "digamma" "trigamma" --- > [7] "cummax" "cummin" "cumprod" "cumsum" "cumvar" "exp" > [13] "expm1" "log" "log10" "log2" "log1p" "cos" > [19] "cosh" "sin" "sinh" "tan" "tanh" "acos" > [25] "acosh" "asin" "asinh" "atan" "atanh" "cospi" > [31] "sinpi" "tanpi" "gamma" "lgamma" "digamma" "trigamma"
r-release-windows-x86_64
Comparing 'spam-Ex.Rout' to 'spam-Ex.Rout.save': 78,82c78,82 < [7] "cummax" "cummin" "cumprod" "cumsum" "exp" "expm1" < [13] "log" "log10" "log2" "log1p" "cos" "cosh" < [19] "sin" "sinh" "tan" "tanh" "acos" "acosh" < [25] "asin" "asinh" "atan" "atanh" "cospi" "sinpi" < [31] "tanpi" "gamma" "lgamma" "digamma" "trigamma" --- > [7] "cummax" "cummin" "cumprod" "cumsum" "cumvar" "exp" > [13] "expm1" "log" "log10" "log2" "log1p" "cos" > [19] "cosh" "sin" "sinh" "tan" "tanh" "acos" > [25] "acosh" "asin" "asinh" "atan" "atanh" "cospi" > [31] "sinpi" "tanpi" "gamma" "lgamma" "digamma" "trigamma"
NOTEdifferences from ‘spam-Ex.Rout’ to ‘spam-Ex.Rout.save’r-oldrel-macos-arm64, r-oldrel-macos-x86_64, r-oldrel-windows-x86_64
78,82c78,82 < [7] "cummax" "cummin" "cumprod" "cumsum" "exp" "expm1" < [13] "log" "log10" "log2" "log1p" "cos" "cosh" < [19] "sin" "sinh" "tan" "tanh" "acos" "acosh" < [25] "asin" "asinh" "atan" "atanh" "cospi" "sinpi" < [31] "tanpi" "gamma" "lgamma" "digamma" "trigamma" --- > [7] "cummax" "cummin" "cumprod" "cumsum" "cumvar" "exp" > [13] "expm1" "log" "log10" "log2" "log1p" "cos" > [19] "cosh" "sin" "sinh" "tan" "tanh" "acos" > [25] "acosh" "asin" "asinh" "atan" "atanh" "cospi" > [31] "sinpi" "tanpi" "gamma" "lgamma" "digamma" "trigamma"
- NOTE5 OK, 8 NOTENow
- NOTE13 OK, 1 NOTE2026-04-23
- OK14 OK2026-04-22
- ERROR13 OK, 1 ERROR2026-04-18
- OK14 OK2026-03-10
Documentation
- Help pages
- 73 (2 internal)includes a package overview page
- Examples that run
- 86%56 run in a plain check · 8 never run · 1 hold no code
- Exported functions with examples
- 93%
- Documented parameters
- 92%
- Return-value docs
- 77%
- Help pages citing references
- 77%
Also includes 7 demo scripts (run with demo())
Downloads
Repository
Repository git.math.uzh.ch/reinhard.furrer/spam is linked, but repository-practices checks have not run for it yet. Checks are GitHub-only for now.
Dependencies
Installing spam adds 2 packages (2 with compiled code, 1.8 MB of source tarballs). Heaviest: Rcpp 1.8 MB, dotCall64 20 KB.
Show the 48 most downloaded packagesHide the 48 most downloaded packages
Code & Tests
Datasets
People & History
Show 4 more contributorsHide 4 contributors
Show 6 peopleHide 6 people
Pick two releases to compare their code metrics.
- 2.11-4Latest
- RR 4.6.0 released · 2026-04-24
- 2.11-32026-01-08 · diff ↗
- RR 4.5.0 released · 2025-04-11
- 2.11-12025-01-21 · diff ↗
- 2.11-02024-10-04 · diff ↗
- RR 4.4.0 released · 2024-04-24
- 2.10-02023-10-23 · diff ↗
- RR 4.3.0 released · 2023-04-21
- 2.9-12022-08-07 · diff ↗
- 2.9-02022-07-11 · diff ↗ ·
added 9 exports
rmvnorm.cond, rmvt, rmvt.spam, rgrf, cov.finnmat, cov.mat12, cov.mat32, cov.mat52, neg2loglikelihood.nomean - RR 4.2.0 released · 2022-04-22
- 2.8-0
- 2.7-0
- RR 4.1.0 released · 2021-05-18
- 2.6-0
Show 66 earlier eventsHide 66 earlier events
- RR 4.0.0 released · 2020-04-24
- 2.5-12019-12-12 · diff ↗
- 2.5-02019-12-06 · diff ↗
- unarchivedReturned to CRAN2019-11-06
- unarchivedReturned to CRAN2019-11-02
- 2.4-02019-11-02 · diff ↗
- 2.3-0.22019-10-28 · diff ↗
- orphanedOrphaned by its maintainer2019-10-26installation warnings were not corrected in time Misuse of 'call intpr', detected by gfortran 10
- 2.3-0.12019-10-26 · diff ↗
- 2.3-02019-09-14 · diff ↗ ·
removed 4 exports
todo, spam.history, spam.options, spam.getOptionadded 1 export
spam_random - RR 3.6.0 released · 2019-04-26
- 2.2-22019-03-08 · diff ↗
- 2.2-12018-12-20 · diff ↗
- 2.2-0
- RR 3.5.0 released · 2018-04-23
- 2.1-42018-04-12 · diff ↗
- 2.1-3
- 2.1-22017-12-22 · diff ↗
- 2.1-12017-07-03 · diff ↗
- 2.1-0
- RR 3.4.0 released · 2017-04-21
- 1.4-02016-08-30 · diff ↗
- RR 3.3.0 released · 2016-05-03
- 1.3-02015-10-29 · diff ↗
- 1.2-1
- RR 3.2.0 released · 2015-04-16
- 1.0-12014-09-09 · diff ↗ ·
removed 2 exports
dcheck, icheckadded 12 exports
spam_rdist, spam_rdist.earth, as.vector.spam, pad<-.spam, var.spam, eigen.spam, crossprod.spam, tcrossprod.spam, rowpointers<-, entries<-, colindices<-, dimension<- - RR 3.1.0 released · 2014-04-10
- 0.41-02014-02-26 · diff ↗
- 0.40-02013-09-12 · diff ↗
- 0.30-12013-08-25 · diff ↗ ·
removed 2 exports
make.prec, backsolveadded 16 exports
precmat, precmat.RWn, precmat.GMRFreglat, covmat, cov.exp, cov.sph, cov.nug, cov.wu1, cov.wu2, cov.wu3, cov.wend1, cov.wend2, cov.mat, germany.plot, grid_trace2, grid_zoom - 0.29-32013-04-24 · diff ↗
- RR 3.0.0 released · 2013-04-03
- 0.29-22012-08-17 · diff ↗
- 0.29-12012-05-05 · diff ↗
- 0.29-02012-05-01 · diff ↗ ·
removed 12 exports
log, gamma, lgamma, round, signif, max, min, range, prod, sum, any, alladded 18 exports
rmvnorm.const, rmvnorm.canonical.const, rmvnorm.prec.const, precmat.RW1, precmat.RW2, precmat.season, precmat.IGMRFreglat, precmat.IGMRFirreglat, rowSums.spam, colSums.spam, rowMeans.spam, colMeans.spam, head.spam, tail.spam, chol2inv.spam, subset.spam, subset.rows.spam, backsolve - RR 2.15.0 released · 2012-03-30
- 0.28-0
- RR 2.14.0 released · 2011-10-31
- 0.27-0
- RR 2.13.0 released · 2011-04-13
- RR 2.12.0 released · 2010-10-15
- 0.23-02010-09-02 · diff ↗
- 0.22-02010-06-09 · diff ↗
- RR 2.11.0 released · 2010-04-22
- 0.21-02010-04-20 · diff ↗ ·
removed 1 export
adiag.spamadded 10 exports
mle.spam, mle.nomean.spam, neg2loglikelihood.spam, mle, mle.nomean, neg2loglikelihood, bdiag.spam, bandwidth, powerboost, permutation.spam - 0.20-32010-01-13 · diff ↗
- 0.20-22009-12-16 · diff ↗ ·
removed 1 export
.spam.matmul.matadded 2 exports
map.landkreis, adjacency.landkreis - RR 2.10.0 released · 2009-10-26
- 0.15-52009-09-18 · diff ↗ ·
added 6 exports
apply.spam, rmvnorm.spam, rmvnorm.canonical, rmvnorm.prec, adiag.spam, .spam.matmul.mat - RR 2.9.0 released · 2009-04-17
- 0.15-42009-04-15 · diff ↗
- 0.15-32009-02-21 · diff ↗
- RR 2.8.0 released · 2008-10-20
- 0.15-22008-09-12 · diff ↗
- 0.15-12008-09-06 · diff ↗ ·
removed 1 export
spam.spamadded 4 exports
as.spam.dist, as.spam.list, isSymmetric.spam, all.equal.spam - 0.15-02008-06-15 · diff ↗ ·
added 20 exports
spam.version, spam.Version, nearest.dist, spam.spam, spam.list, diag<-.spam, dim<-.spam, kronecker.default, kronecker.spam, update.spam.chol.NgPeyton, norm.spam, triplet, as.spam.matrix.csr, as.matrix.csr.spam, as.dgRMatrix.spam, as.dgCMatrix.spam, as.spam.dgRMatrix, as.spam.dgCMatrix, read.MM, read.HB - 0.13-32008-04-22 · diff ↗
- RR 2.7.0 released · 2008-04-22
- 0.13-2
- 0.13-12007-12-05 · diff ↗
- 0.132007-11-23 · diff ↗
- RR 2.6.0 released · 2007-10-03
- 0.122007-09-30 · diff ↗ ·
added 11 exports
dcheck, icheck, validspamobject, as.spam.chol.NgPeyton, chol.spam, solve.spam, forwardsolve.spam, backsolve.spam, plot.spam, display.spam, image.spam - 0.112007-09-08
- RR 2.5.0 released · 2007-04-24
Package metadata
- First published
- 2007-09-08
- Total releases
- 54 / 19 yrs
- License
- LGPL-2 | BSD_3_clause + file LICENSE OSI · relicensed from LGPL-2 in 2.2-0
- Minimum R
- ≥ 4.0
- Bundled data
- 216 KB / 5 files
- Download size
- 3.1 MB
Cite
Cite this package
Run in R for the authors' entry:
citation("spam")The package provides a citation file, so citation() returns the authors' own entry.
It points to 10.18637/jss.v036.i10, 10.18637/jss.v063.c01, 10.1016/j.cageo.2016.11.015.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-21, which the citation names so these numbers can be found later. More on citing and the projects behind them.