'Rcpp' Integration for the 'Armadillo' Templated Linear Algebra Library

'Armadillo' is a templated C++ linear algebra library (by Conrad Sanderson) that aims towards a good balance between speed and ease of use. Integer, floating point and complex numbers are supported, as well as a subset of trigonometric and statistics functions. Various matrix decompositions are provided through optional integration with LAPACK and ATLAS libraries. The 'RcppArmadillo' package includes the header files from the templated 'Armadillo' library. Thus users do not need to install 'Armadillo' itself in order to use 'RcppArmadillo'. From release 7.800.0 on, 'Armadillo' is licensed under Apache License 2; previous releases were under licensed as MPL 2.0 from version 3.800.0 onwards and LGPL-3 prior to that; 'RcppArmadillo' (the 'Rcpp' bindings/bridge to Armadillo) is licensed under the GNU GPL version 2 or later, as is the rest of 'Rcpp'. Note that Armadillo requires a fairly recent compiler; for the g++ family at least version 4.6.* is required.

R and Armadillo via Rcpp

Armadillo is a templated C++ linear algebra library written by Conrad Sanderson that aims towards a good balance between speed and ease of use. Integer, floating point and complex numbers are supported, as well as a subset of trigonometric and statistics functions. Various matrix decompositions are provided through optional integration with LAPACK and ATLAS libraries.

A delayed evaluation approach is employed (during compile time) to combine several operations into one, and to reduce (or eliminate) the need for temporaries. This is accomplished through recursive templates and template meta-programming.

This library is useful if C++ has been decided as the language of choice (due to speed and/or integration capabilities), rather than another language.

The RcppArmadillo package includes the header files from the templated Armadillo library. Thus users do not need to install Armadillo itself in order to use RcppArmadillo.

This Armadillo integration provides a nice illustration of the capabilities of the Rcpp package for seamless R and C++ integration.

The package is under active development with releases to CRAN about once a month.

The package contains a pdf vignette which is a pre-print of the paper by Eddelbuettel and Sanderson in CSDA (2014).

Romain Francois, Dirk Eddelbuettel and Doug Bates

GPL (>= 2)


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.


0.7.960.1.2 by Dirk Eddelbuettel, 22 days ago


Report a bug at https://github.com/RcppCore/RcppArmadillo/issues

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

Authors: Dirk Eddelbuettel, Romain Francois, Doug Bates and Binxiang Ni

Documentation:   PDF Manual  

Task views: Numerical Mathematics

GPL (>= 2) license

Imports Rcpp, stats, utils, methods

Suggests RUnit, Matrix, pkgKitten, reticulate, highlight

Linking to Rcpp

Imported by DiffusionRgqd, DiffusionRimp, DiffusionRjgqd, FLightR, TED, mrgsolve, pirate.

Depended on by FisHiCal, MVB, PedCNV, prospectr, robustgam.

Suggested by CFC, DepthProc, FSelectorRcpp, ManifoldOptim, MfUSampler, RcppRoll, crmPack, factorcpt, themetagenomics, unsystation.

Linked to by ACEt, AHR, ASPBay, AbsFilterGSEA, AdaptiveSparsity, Amelia, BAMBI, BCEE, BCSub, BIFIEsurvey, BIPOD, BNPMIXcluster, BTLLasso, BaBooN, BacArena, Barycenter, BatchMap, BayesBD, BayesComm, BigVAR, BosonSampling, BradleyTerryScalable, BuyseTest, CDM, CVR, ChannelAttribution, CircularDDM, ClusVis, ClusterR, Countr, CoxPlus, Crossover, DLMtool, DatabionicSwarm, DrImpute, EAinference, ECFsup, ECctmc, ELMSurv, EMbC, EPGLM, EloChoice, EstHer, FBFsearch, FDRreg, FIACH, FRESA.CAD, FUNLDA, FastBandChol, FastSF, GADAG, GAS, GDINA, GEEaSPU, GERGM, GLMaSPU, GMCM, GPvam, GSE, GWmodel, GauPro, GeneralizedUmatrix, GenomicMating, GenomicTools, GiRaF, Gmedian, GraphKit, GreedyEPL, HLMdiag, HSAR, ICtest, JAGUAR, JMbayes, KODAMA, KernelKnn, LAM, Langevin, Luminescence, MAT, MAVE, MCMCprecision, MESS, MRS, MSGARCH, MatchItSE, MatrixCorrelation, MatrixLDA, MetaheuristicFPA, MiSPU, MixedDataImpute, Morpho, Mposterior, NNLM, NPflow, NetRep, OpenImageR, POMaSPU, POUMM, PPtreeViz, PWD, PanelCount, PenCoxFrail, PhylogeneticEM, PoweR, RLumModel, RSSL, RStoolbox, Rborist, RcppDE, RcppHMM, RcppMLPACK, RcppSMC, RealVAMS, Rfast, Rlda, Rphylopars, Rvcg, SAMM, SBSA, SFS, SMMA, SVMMatch, SelvarMix, SpaCCr, SpaTimeClus, SparseFactorAnalysis, SpatMCA, SpatPCA, SpatialEpi, SpatialTools, SpecsVerification, StepwiseTest, SubTite, TAM, TauStar, TreeBUGS, VARtests, VarSelLCM, abcrf, acc, acebayes, alR, anMC, anomalyDetection, arrApply, attrCUSUM, bayesDP, bayesImageS, bayeslm, bayesm, bayou, bcROCsurface, bcp, bcs, bfa, bife, bigKRLS, bigReg, biglasso, bigstatsr, binaryGP, blockmodels, blockseg, bssm, bvarsv, cIRT, cOde, catSurv, ccaPP, cccp, cctools, cda, cladoRcpp, coala, coda.base, coneproj, copCAR, cord, cpr, cqrReg, crawl, ctmcd, cytometree, dfcomb, dfmta, diagis, dina, dnc, drgee, dtwclust, dynamichazard, eDMA, emIRT, esaddle, esreg, eulerr, evolqg, fICA, factorstochvol, fastLink, fastM, fdaMixed, fdasrvf, flan, flip, forecast, fourPNO, fourierin, gMWT, gRain, gRbase, gRim, gamreg, gaselect, gbp, gcKrig, gdpc, gee4, geoCount, geojsonR, ggdmc, gjam, glamlasso, glcm, glmBfp, glmgraph, gmum.r, goldi, graphicalVAR, grove, growcurves, growfunctions, gsynth, hawkes, hkevp, hsphase, hypervolume, iBATCGH, iLaplace, icamix, iccbeta, immer, inca, interflex, jmcm, jmotif, joineRML, kdecopula, l0ara, largeVis, lowmemtkmeans, lpme, lsgl, ludic, markophylo, markovchain, matchingMarkets, matchingR, mcIRT, mcemGLM, mclustcomp, mcmcse, metafolio, mets, mev, miceadds, milr, minimaxdesign, mirt, mirtCAT, miscF, mixedMem, mixpack, momentuHMM, moveHMM, mp, mrfDepth, msgl, multdyn, mvcluster, mvnfast, netcoh, netdiffuseR, ngspatial, nprobust, odpc, oem, onlinePCA, optiSel, pacotest, parallelDist, pcalg, pdSpecEst, penalized, perccal, pgee.mixed, phantom, phylocurve, phylosignal, planar, planor, prototest, psd, psgp, quadrupen, qualpalr, quanteda, queuecomputer, rFTRLProximal, rags2ridges, ragt2ridges, ramcmc, rcss, rdist, redist, regsem, repolr, resemble, revdbayes, revealedPrefs, rflann, rgam, riskRegression, rmgarch, robustBLME, robustHD, robustreg, roll, rotations, rpms, rrpack, rstpm2, rugarch, rust, saeRobust, sbfc, sbmSDP, scanstatistics, scoringRules, secure, seqHMM, sgd, sglOptim, sirt, skm, skpr, slfm, smoof, smooth, snipEM, spBayesSurv, sparsereg, spduration, sppmix, starma, stm, stochvol, stplanr, stpm, strat, strum, survAccuracyMeasures, surveybootstrap, synlik, tensorBSS, textTinyR, textmineR, timma, trackdem, treeclim, tsBSS, unmarked, varband, wCorr, walker, womblR, yuima, zic, ziphsmm.

See at CRAN