SPArse Matrix

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) ; see 'citation("spam")' for details.


Versions of `spam` prior to 1.00 included a LICENSE file that
described the license of some Fortran routines incompatible with the
general R philosophy.  The routines are in src/cholmodified.f.  For
the packages `SparseM` and `spam`, Esmond Ng and Barry Peyton have
very kindly given permission to use their routines under an open
source license (2012/03/09 and 2014/08/29).  They have requested that
their code be credited via the following two publications:

   Esmond G. Ng and Barry W. Peyton, "Block sparse Cholesky algorithms
   on advanced uniprocessor computers". SIAM J. Sci. Stat. Comput.
   14  (1993), pp. 1034-1056.

   John R. Gilbert, Esmond G. Ng, and Barry W. Peyton, "An efficient
   algorithm to compute row and column counts for sparse Cholesky
   factorization". SIAM J. Matrix Anal. Appl. 15 (1994), pp. 1075-1091.

The old license file of `spam` versions <1.0 is in ./inst/0LICENCE 

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("spam")

2.11-4 by Reinhard Furrer, 5 months ago


https://www.math.uzh.ch:443/spam/


Report a bug at https://git.math.uzh.ch/reinhard.furrer/spam/-/issues


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


Authors: Reinhard Furrer [aut, cre] (ORCID: , Florian Gerber [aut] , Roman Flury [aut] , Daniel Gerber [ctb] , Kaspar Moesinger [ctb] , Annina Cincera [ctb] , Youcef Saad [ctb] (SPARSEKIT http://www-users.cs.umn.edu/~saad/software/SPARSKIT/) , Esmond G. Ng [ctb] (Fortran Cholesky routines) , Barry W. Peyton [ctb] (Fortran Cholesky routines) , Joseph W.H. Liu [ctb] (Fortran Cholesky routines) , Alan D. George [ctb] (Fortran Cholesky routines) , Lehoucq B. Rich [ctb] (ARPACK) , Maschhoff Kristi [ctb] (ARPACK) , Sorensen C. Danny [ctb] (ARPACK) , Yang Chao [ctb] (ARPACK)


Documentation:   PDF Manual  


LGPL-2 | BSD_3_clause + file LICENSE license


Imports dotCall64, grid, methods, Rcpp

Suggests spam64, fields, Matrix, testthat, R.rsp, truncdist, knitr, rmarkdown

Linking to Rcpp


Imported by BSTZINB, CARBayes, CARBayesST, CollocInfer, GeneralizedWendland, GeoModels, GrabSVG, JOPS, LMMsolver, OCNet, OptimaRegion, SeuratObject, SpATS, TwoTimeScales, ammiBayes, cobin, cocons, dsp, latticeDensity, mdatools, mvMORPH, nat.nblast, npsp, rivnet, robin, scBSP, sim2Dpredictr, sklarsomega, sparseinv, splm, statgenHTP, statgenMPP, varycoef, vectorwavelet.

Depended on by LatticeKrig, autoFRK, copCAR, fields, randPedPCA, spThin.

Suggested by bispdep, dotCall64, fastMatMR, gear, krippendorffsalpha, optimParallel, spam64, spatialreg, spdep, tipsae.

Enhanced by slam.


See at CRAN