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, 3 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, AICcmodavg, AROC, ARpLMEC, AdaptiveSparsity, ArCo, BMhyb, BTYD, BayesS5, BayesianTools, BeSS, Bergm, BigQuic, BinOrdNonNor, BlockCov, BradleyTerryScalable, BreedingSchemeLanguage, CEGO, CIAAWconsensus, CISE, CNVScope, CNull, CRF, CVXR, CatEncoders, ChainLadder, CollocInfer, CompareCausalNetworks, CorReg, Corbi, Countr, CovTools, Crossover, Cyclops, DAISIE, DCD, DDD, DNMF, DOBAD, DRaWR, DWLasso, DiffNet, DrBats, EFDR, EGAnet, EIX, EdSurvey, Epi, FDboost, FEprovideR, FRK, FSInteract, FastImputation, FeatureHashing, FindIt, FlexGAM, ForecastComb, GENLIB, GENMETA, GFD, GMMAT, GWSDAT, GeomComb, HDCI, HDPenReg, HLMdiag, HRQoL, HiCblock, HiCglmi, IDE, INLABMA, IPCAPS, ITRSelect, IsingFit, JWileymisc, KMgene, L0Learn, LANDD, LICORS, LMERConvenienceFunctions, 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, NetworkDistance, NetworkToolbox, NormalBetaPrime, OpenMx, PBImisc, PCADSC, PEIP, PLNmodels, PLmixed, PQLseq, PROreg, PUlasso, PartCensReg, PenCoxFrail, PerFit, PlackettLuce, Plasmode, R2MLwiN, 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, TANDEM, TCA, TFisher, TMB, TTCA, TULIP, TooManyCellsR, TopicScore, VCA, WeMix, XGR, XMRF, abnormality, abtest, adjclust, apcluster, apdesign, ar.matrix, arc, archetypal, argo, aricode, ashr, asnipe, automultinomial, bamlss, basefun, bastah, bayou, beam, benchmarkme, bibliometrix, biospear, blin, blockForest, blockmodeling, blockseg, bootnet, brainGraph, brant, brglm2, bridgesampling, brms, btergm, cape, catch, cherry, chinese.misc, chords, cleanNLP, cliqueMS, clustvarsel, coalescentMCMC, codingMatrices, colourvision, comato, complexplus, control, cooccurNet, cope, copula, coxinterval, coxme, crisp, ctsem, deepNN, demu, denoiseR, denseFLMM, detect, diffusionMap, discfrail, dmt, dnet, doBy, dplR, dr4pl, dtwclust, dyndimred, dynr, dynutils, eNetXplorer, eRm, econet, effectFusion, egoTERGM, episode, ergm, eva, evclust, evolqg, expoRkit, expose, ez, fExpressCertificates, fGarch, face, facilitation, fastLink, fastNaiveBayes, fastcox, fbar, fdapace, fiberLD, flars, fpmoutliers, frailtyEM, fssemR, funcy, fuser, gMCP, gRbase, gamm4.test, gcbd, geecure, geex, gllvm, glmaag, glmmLasso, glmmTMB, glmmsr, glmnetUtils, gnm, goric, graphicalVAR, grf, grpreg, gustave, gwer, hbm, hbsae, hergm, hierarchicalDS, hierarchicalSets, highriskzone, higrad, hmi, hopit, hts, huge, iCARH, iRF, iTOP, icdGLM, igraph, iilasso, influence.ME, influenceR, inlabru, intercure, ivmodel, joineRML, joineRmeta, kknn, knockoff, ks, landsepi, lavaSearch2, lgcp, lilikoi, lime, lineqGPR, lmvar, loggle, lognorm, lolog, lotri, lpbrim, lsbs, ltmle, ludic, lvnet, madness, 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, mlmm.gwas, mltools, mme, mmmgee, moult, msaenet, multibiplotGUI, multimark, mumm, mvSLOUCH, mvgraphnorm, mvord, natural, netCoin, netchain, netcom, netdiffuseR, netgsa, netgwas, netregR, networktree, neuroim, newsmap, nlmixr, nmathresh, nmfgpu4R, nmslibR, nonlinearTseries, nopaco, nowcasting, nutriNetwork, 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, pkggraph, pmpp, polmineR, polycor, polywog, powerlmm, powerplus, pre, predictmeans, prioritizr, proxyC, prozor, pulsar, pvclass, qgraph, qrjoint, qrsvm, quantable, quanteda, quantreg, r2glmm, rWind, rWishart, ragt2ridges, randomLCA, ranger, rankFD, raptr, rare, rbi.helpers, recipes, refund, repolr, reticulate, rmatio, rmgarch, robustSingleCell, robustreg, rodd, rolypoly, rosqp, rpql, rr2, rsparse, rstanarm, rstap, rsvd, sNPLS, saeRobust, sbfc, scalpel, scam, scrubr, sctransform, selac, seqHMM, seqMeta, sharpr2, simcausal, simglm, sklarsomega, slimrec, smam, smurf, spGARCH, spaMM, spacom, sparseFLMM, sparseHessianFD, sparseMVN, sparsebnUtils, sparseinv, sparsesvd, sparsevar, sparsio, spatgraphs, spatstat, spatsurv, spdep, spectralGraphTopology, sphet, splm, spmoran, spsur, stR, stabm, stm, stocc, strum, stylest, sumFREGAT, superbiclust, surrosurv, surveillance, survival, survivalsvm, survtmle, synlik, syt, tensorr, text2vec, themetagenomics, threeboost, tidytext, tmle.npvi, treeDA, 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, CAM, 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, 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, ViSiElse, WGScan, adaptMCMC, adaptsmoFMRI, addhaz, ahaz, arm, arules, arulesCBA, aster2, bc3net, bdots, bgsmtr, biglasso, bnstruct, cAIC4, centiserve, cgam, cjoint, climwin, corpustools, covLCA, cpgen, cplm, crqa, crrp, cthreshER, ctmcmove, cvxbiclustr, cvxclustr, dataPreparation, dcGOR, dclone, dglars, dhglm, distrom, dmm, epistasis, epoc, excursions, expm, fanc, fastclime, fda, flare, frailtyHL, gamlr, gamm4, gcdnet, gdistance, geeM, 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, networkR, optbdmaeAT, optimbase, optrcdmaeAT, orderedLasso, pedgene, pedigree, pedigreemm, penDvine, pense, phateR, phmm, picasso, pleio, prodest, qgtools, qlcMatrix, qpcR, quadrupen, qut, rCUR, ramps, randnet, recommenderlab, reglogit, robustlmm, rsggm, 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, DoE.MIParray, ECOSolveR, ESEA, FSelectorRcpp, GDINA, HSAUR, HSAUR2, HelpersMG, KFAS, LncPath, NCmisc, PAGI, PRIMME, R.matlab, RcppArmadillo, Rmpfr, Ryacas, STPGA, SpaDES.core, StanHeaders, afex, alphastable, broom, broom.mixed, car, cccd, ccdrAlgorithm, classGraph, cluster, corpus, corrgram, cpr, diffusr, dils, dimRed, discSurv, e1071, ePCR, extraTrees, eyetrackingR, flacco, funrar, gap, gcKrig, gear, gemtc, ggeffects, gmodels, h2o, hamlet, hdi, hydra, ivmte, lava, lda, lfactors, loe, matrixpls, mefa, mlt.docreg, neat, pcalg, performance, pergola, pmml, prc, rARPACK, rattle, rmumps, robustbase, robustvarComp, rope, rstan, scidb, sfsmisc, sirt, solarius, spam, sptm, srvyr, stabledist, superml, tableone, tscount, zenplots.

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

Linked to by CaliCo.


See at CRAN