Sparse and Dense Matrix Classes and Methods

A rich hierarchy of matrix classes, including triangular, symmetric, and diagonal matrices, both dense and sparse and with pattern, logical and numeric entries. Numerous methods for and operations on these matrices, using 'LAPACK' and 'SuiteSparse' libraries.


News

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

1.2-17 by Martin Maechler, 8 months ago


http://Matrix.R-forge.R-project.org/


Report a bug at https://r-forge.r-project.org/tracker/?group_id=61


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


Authors: Douglas Bates [aut] , Martin Maechler [aut, cre] , Timothy A. Davis [ctb] (SuiteSparse and 'cs' C libraries , notably CHOLMOD , AMD; collaborators listed in dir(pattern = '^[A-Z]+[.]txt$' , full.names=TRUE , system.file('doc' , 'SuiteSparse' , package='Matrix'))) , Jens Oehlschlägel [ctb] (initial nearPD()) , Jason Riedy [ctb] (condest() and onenormest() for octave , Copyright: Regents of the University of California) , R Core Team [ctb] (base R matrix implementation)


Documentation:   PDF Manual  


Task views: Econometrics, Multivariate Statistics, Numerical Mathematics


GPL (>= 2) | file LICENCE license


Imports methods, graphics, grid, stats, utils, lattice

Suggests expm, MASS

Enhances MatrixModels, graph, SparseM, sfsmisc


Imported by ADMM, AGHmatrix, AHM, AICcmodavg, AROC, ARpLMEC, AdaptiveSparsity, ArCo, BFpack, BLPestimatoR, BMhyb, BTYD, BayesNSGP, BayesS5, BayesianTools, BeSS, Bergm, BigQuic, BinOrdNonNor, BlockCov, BradleyTerryScalable, BreedingSchemeLanguage, CEGO, CIAAWconsensus, CISE, CMShiny, CNVScope, CNull, CRF, CVXR, CatEncoders, ChainLadder, ClimMobTools, CliquePercolation, CollocInfer, CompareCausalNetworks, Corbi, Countr, CovTools, Crossover, Cyclops, DAISIE, DCD, DDD, DNMF, DOBAD, DRaWR, DWLasso, DiffNet, DiffXTables, DrBats, EFDR, EGAnet, EIX, EdSurvey, Epi, FDboost, FEprovideR, FRK, FSInteract, FastImputation, FeatureHashing, FindIt, FlexGAM, ForecastComb, GENLIB, GENMETA, GFD, GLMpack, GMMAT, GWSDAT, GeomComb, GillespieSSA2, HCD, HDCI, HDPenReg, HLMdiag, HRQoL, HiCblock, HiCglmi, Hmsc, IDE, IMAGE, INLABMA, IPCAPS, ITRSelect, IsingFit, JWileymisc, KMgene, L0Learn, LANDD, LICORS, LMERConvenienceFunctions, LRQMM, LUCIDus, LassoBacktracking, MANOVA.RM, MCMCprecision, MEGENA, MESS, MFKnockoffs, MFPCA, MIIVsem, MLGL, MM4LMM, MMeM, MRFcov, MatrixModels, MendelianRandomization, MetamapsDB, MixedPsy, MixfMRI, MlBayesOpt, Morpho, MuChPoint, MuMIn, MultiVarMI, NORTARA, NetMix, NetworkComparisonTest, NetworkDistance, NetworkToolbox, NormalBetaPrime, OpenMx, PBImisc, PCADSC, PEIP, PLNmodels, PLmixed, PQLseq, PRIMAL, PROreg, PUlasso, PanCanVarSel, PartCensReg, PenCoxFrail, PerFit, PlackettLuce, Plasmode, Qtools, R2MLwiN, RAINBOWR, RCMIP5, REndo, RGF, RHPCBenchmark, RKEEL, RMThreshold, RNGforGPD, ROI.plugin.clp, ROI.plugin.ecos, RPANDA, RSSL, RSiena, RSpectra, RTransProb, RVFam, RaceID, RadioGx, RcppEigen, Rdimtools, Rdtq, ResourceSelection, RevEcoR, Rlinsolve, Rnmr1D, Rphylopars, RxODE, SAR, SAVER, SCGLR, SCORPIUS, SDALGCP, SID, SIRE, SISIR, SMNCensReg, SPAS, SSN, STB, SUMMER, ScreenClean, SemiParSampleSel, Seurat, SimCorrMix, SimInf, SimMultiCorrData, SimRVSequences, SimRepeat, SmCCNet, StempCens, SwarmSVM, TAG, TANDEM, TCA, TFisher, TMB, TOHM, TSsmoothing, TTCA, TULIP, TestDesign, TextForecast, TooManyCellsR, TopicScore, VCA, ViSiElse, WeMix, XGR, XMRF, ZIPFA, abnormality, abtest, adjclust, alakazam, apcluster, apdesign, ar.matrix, arc, archetypal, argo, aricode, ashr, asnipe, automultinomial, backbone, bamlss, basefun, bastah, bayou, beam, benchmarkme, bibliometrix, biospear, blin, blockForest, blockmodeling, bootnet, brainGraph, brant, brglm2, bridgesampling, brms, btergm, cape, cat.dt, catch, cate, cherry, chinese.misc, chords, cleanNLP, clustvarsel, coalescentMCMC, codingMatrices, colourvision, comato, complexplus, control, cooccurNet, cope, copula, coxinterval, coxme, coxmeg, crisp, ctsem, ddpca, deepNN, demu, denoiseR, denseFLMM, detect, diem, diffman, diffusionMap, discfrail, dmt, dnet, doBy, dplR, dr4pl, dtwclust, dynr, dynutils, dynwrap, eNetXplorer, eRm, econet, economiccomplexity, effectFusion, egoTERGM, episode, ergMargins, ergm, eva, evclust, evolqg, expose, ez, fExpressCertificates, fGarch, face, facilitation, fastLink, fastNaiveBayes, fastcox, fbar, fdapace, fiberLD, flars, fpmoutliers, frailtyEM, fssemR, funcy, fusedest, fuser, gMCP, gRbase, gamm4.test, gcbd, geecure, geex, gemma2, gllvm, glmaag, glmmLasso, glmmTMB, glmmsr, glmnetUtils, gnm, goric, graph4lg, graphicalVAR, grf, grpreg, gustave, gwer, hbm, hbsae, hergm, hierarchicalDS, hierarchicalSets, highriskzone, higrad, hmi, hmlasso, hopit, hts, huge, iCARH, iCellR, iRF, iTOP, icdGLM, igraph, iilasso, influence.ME, influenceR, inlabru, intercure, ivmodel, joineRML, joineRmeta, kknn, knn.covertree, knockoff, ks, landsepi, lavaSearch2, leiden, lgcp, lilikoi, lime, lineqGPR, lmds, lmvar, locStra, loggle, lognorm, lolog, lotri, lpbrim, lsbs, ltmle, ludic, lvnet, madness, maotai, marcher, marked, markovchain, mase, mboost, mcglm, mcompanion, medflex, merDeriv, metR, metaBLUE, metaMix, metaSEM, metaboGSE, metafuse, metagear, mgcv, miRNAss, micemd, midasr, misclassGLM, missCompare, mistral, mixKernel, mlapi, mlergm, mlmi, mlmm.gwas, mltools, mme, mmmgee, moult, msaenet, multibiplotGUI, multicross, multimark, multiviewtest, mumm, mvSLOUCH, mvgraphnorm, mvord, natural, netCoin, netchain, netcom, netdiffuseR, netgsa, netgwas, netregR, networkR, networktree, neuroim, newsmap, nlmixr, nmathresh, nmfgpu4R, nmslibR, nonlinearTseries, nopaco, nowcasting, nutriNetwork, nvmix, oem, ompr, ompr.roi, oppr, optBiomarker, optiSel, optiSolve, optismixture, optweight, opusminer, ordinal, osqp, palasso, panelvar, parglm, pbkrtest, pcgen, pedigreeTools, perARMA, permuco, pez, phangorn, phia, phylocurve, phyr, pkggraph, pmpp, poismf, polmineR, polycor, polywog, powerlmm, powerplus, pre, predictmeans, primePCA, prioritizr, proxyC, prozor, psychNET, psychonetrics, pulsar, pvclass, qgraph, qrjoint, qrsvm, qtl2pleio, quantable, quanteda, quantreg, r2glmm, rWind, rWishart, ragt2ridges, randomLCA, ranger, rankFD, raptr, rare, rbi.helpers, rbridge, recipes, refund, repolr, reticulate, riskParityPortfolio, riskclustr, rmRNAseq, rmatio, rmgarch, robustSingleCell, robustreg, rodd, rolypoly, rosqp, rpql, rr2, rsparse, rstanarm, rstap, rsvd, sNPLS, saeRobust, samc, sbfc, scalpel, scam, scrubr, sctransform, selac, seqHMM, seqMeta, sharpr2, simExam, simcausal, simglm, sirus, sklarsomega, slimrec, smam, smurf, spANOVA, spGARCH, spaMM, spacom, sparseFLMM, sparseHessianFD, sparseMVN, sparsebnUtils, sparseinv, sparsesvd, sparsevar, sparsio, spatgraphs, spatstat, spatstat.Knet, spatsurv, spdep, spectralGraphTopology, sphet, splm, spmoran, spsur, stR, stabm, statcomp, stm, stocc, strum, stylest, sumFREGAT, superbiclust, surrosurv, surveillance, survival, survivalsvm, survtmle, synlik, syt, tcl, tensorr, text2vec, themetagenomics, threeboost, tidytext, tmle.npvi, tram, treeDA, treeHMM, trustOptim, tsDyn, ttTensor, tukeytrend, tvR, udpipe, ui, umx, unmarked, useful, varbvs, varjmcm, vennLasso, votesys, wavScalogram, wfe, widyr, xLLiM, xgboost, xrf.

Depended on by ADDT, ADMMnet, AMIAS, APML0, BCE, BTLLasso, BacArena, BayesFactor, BinNonNor, BinNor, BullsEyeR, CLSOCP, CRTgeeDR, CVST, CodataGS, CoxBoost, DODR, DRR, DTRlearn2, DWDLargeR, Data2LD, DoubleCone, EMCluster, EMMREML, FRegSigCom, FSTpackage, FTICRMS, GAMBoost, GPvam, GeDS, GenOrd, GenoScan, GeoDE, GrassmannOptim, HSDiC, HiCfeat, IGG, INLAMSM, IPMpack, LPmerge, LSC, MAP, MBC, MBSP, MCMCglmm, MDPtoolbox, MEET, MMS, MargCond, Matrix.utils, MedSurvey, Metatron, MultiGHQuad, MultiOrd, MultiVarSel, NegBinBetaBinreg, NetworkRiskMeasures, ORDER2PARENT, OrdNor, PCovR, POINT, PRISMA, PhylogeneticEM, PivotalR, PoisBinNonNor, PoisBinOrd, PoisBinOrdNonNor, PoisBinOrdNor, PoisNonNor, PoisNor, PrevMap, ProbitSpatial, QRM, QZ, RDFTensor, REBayes, REREFACT, RFGLS, RGENERATEPREC, RMRAINGEN, RNewsflow, RSarules, RealVAMS, RegSDC, Rmagic, SALES, SOR, SSBtools, SmallCountRounding, SpatioTemporal, StableEstim, SubgrpID, SuperPCA, TPEA, TimeProjection, TreePar, WGScan, WaveSampling, adaptMCMC, adaptsmoFMRI, addhaz, ahaz, arm, arules, arulesCBA, aster2, bc3net, bdots, bgsmtr, biglasso, bnstruct, cAIC4, centiserve, cgam, cjoint, climwin, corpustools, covLCA, cplm, crqa, crrp, cthreshER, ctmcmove, cvxbiclustr, cvxclustr, dataPreparation, dcGOR, dclone, dhglm, distrom, dmm, epistasis, epoc, excursions, expm, fanc, fastclime, fda, flare, frailtyHL, gamlr, gamm4, gcdnet, gdistance, geeM, genlasso, geostatsp, glmm, glmnet, gptk, gremlin, growthrate, grpregOverlap, gskat, gvcm.cat, gwerAM, hdlm, hglm, hglm.data, ibmdbR, inarmix, inca, irlba, irregulAR1, islasso, isotonic.pen, kerasformula, kinship2, klin, lassoscore, lcpm, ldr, lfe, lme4, logcondiscr, mapfit, mcen, mclogit, mdhglm, mediation, mefa4, metafor, mgwrsar, mht, mi, minque, mosaic, msda, msgl, multiAssetOptions, mvglmmRank, nadiv, netcoh, optbdmaeAT, optimbase, optrcdmaeAT, orderedLasso, pedgene, pedigree, pedigreemm, penDvine, pense, phateR, phmm, picasso, pleio, prodest, qgtools, qlcMatrix, qpcR, quadrupen, qut, rCUR, rSPDE, ramps, randnet, recommenderlab, reglogit, robustlmm, rwc, sRDA, sSDR, scpm, sdpt3r, sdwd, sensory, serrsBayes, sglOptim, sglasso, snpReady, softImpute, sommer, soptdmaeA, spBayes, spacejam, sparsenet, sparsestep, spatialprobit, spatialreg, speedglm, ssfa, stcos, survey, svcm, svmplus, svydiags, sybil, sybilccFBA, sybilcycleFreeFlux, systemfit, textTinyR, textir, textmineR, tmvtnorm, triversity, tvReg, uwot, vagam, winRatioAnalysis, wordspace.

Suggested by AgreementInterval, CARBayes, CLA, ChoiceModelR, DGCA, DPQ, DoE.MIParray, ECOSolveR, ESEA, EmbedSOM, FSelectorRcpp, GDINA, HSAUR, HSAUR2, HelpersMG, KFAS, LncPath, NCmisc, PAGI, PRIMME, R.matlab, RcppArmadillo, Rmpfr, Ryacas, Ryacas0, STPGA, SpaDES.core, StanHeaders, afex, alphastable, broom, broom.mixed, car, cccd, ccdrAlgorithm, classGraph, cluster, corpus, corrgram, cpr, diffusr, dils, dimRed, discSurv, dyndimred, e1071, ePCR, extraTrees, eyetrackingR, flacco, funrar, gap, gcKrig, gear, gemtc, ggeffects, gmodels, h2o, hamlet, hdi, hydra, insight, ivmte, kernelTDA, lava, lda, lfactors, loe, matrixpls, mefa, mlr3, mlt.docreg, neat, parameters, pcalg, performance, pergola, pmml, porridge, prc, rARPACK, rattle, rmumps, robustbase, rope, rstan, scidb, sfsmisc, simstudy, sirt, solarius, spam, sptm, srvyr, stabledist, superml, tableone, tscount, visreg, zenplots.

Enhanced by OptimalDesign, Rcplex, Rcsdp, Rsymphony, coop, rviewgraph, skmeans, slam.

Linked to by CaliCo.


See at CRAN