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-18 by Martin Maechler, a year 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, AGPRIS, AHM, AICcmodavg, AROC, ARpLMEC, AdaptiveSparsity, ArCo, BCA1SG, BFpack, BGVAR, BLPestimatoR, BOSSreg, BayesLN, BayesMRA, BayesMassBal, BayesNSGP, BayesS5, BayesSUR, BayesSampling, BayesianTools, BeSS, Bergm, BigQuic, BinOrdNonNor, BlockCov, CEGO, CIAAWconsensus, CISE, CLVTools, CMShiny, CNVScope, CNull, CRF, CVXR, CatEncoders, CausalMBSTS, ChainLadder, ClimMobTools, CliquePercolation, CoSMoS, CollocInfer, CompareCausalNetworks, Corbi, Countr, CovCombR, CovTools, Cyclops, DAISIE, DAMOCLES, DCD, DDD, DNMF, DOBAD, DRaWR, DWLasso, DiffNet, DrBats, EFDR, EGAnet, EdSurvey, EmbedSOM, Epi, FDboost, FEprovideR, FRK, FSInteract, FeatureHashing, FindIt, FlexGAM, ForecastComb, FuncNN, GENLIB, GENMETA, GFD, GHap, GLMpack, GMMAT, GPvecchia, GWSDAT, GeomComb, GillespieSSA2, HCD, HDCI, HDPenReg, HLMdiag, Hmsc, IDE, IFAA, IMAGE, INLABMA, ITRSelect, IsingFit, L0Learn, LANDD, LICORS, LMERConvenienceFunctions, LRQMM, LSX, LassoBacktracking, MANOVA.RM, MCMCprecision, MEGENA, MESS, MFPCA, MGDrivE2, MIIVsem, MLGL, MM4LMM, MMeM, MRFcov, MTAR, MachineShop, MatrixModels, MendelianRandomization, MiRKAT, MixedPsy, MixfMRI, MoMPCA, MoTBFs, MonteCarloSEM, Morpho, MuChPoint, MuMIn, MultiVarMI, NPMLEmix, NVCSSL, NetMix, NetworkComparisonTest, NetworkDistance, NetworkReg, NetworkToolbox, NonProbEst, NormalBetaPrime, OpenMx, OptimalDesign, PBImisc, PCADSC, PEIP, PLNmodels, PLmixed, PQLseq, PRIMAL, PROreg, PUlasso, PanCanVarSel, PanelMatch, PartCensReg, PenCoxFrail, PenIC, PerFit, PlackettLuce, Plasmode, ProcMod, Qtools, R2MLwiN, RAINBOWR, REndo, RGF, RHPCBenchmark, RKEEL, RMLPCA, RMThreshold, RNGforGPD, ROCnReg, ROI.plugin.clp, ROI.plugin.ecos, ROI.plugin.osqp, RPANDA, RSSL, RSiena, RSpectra, RVFam, RaceID, RcppEigen, Rdtq, ResourceSelection, RevEcoR, Rlinsolve, Rnmr1D, RobKF, Rphylopars, SAR, SAVER, SCGLR, SCORNET, SCORPIUS, SDALGCP, SID, SIRE, SISIR, SLOPE, SLTCA, SMNCensReg, SPAS, SSN, STB, SUMMER, ScreenClean, Seurat, SightabilityModel, Signac, SimCorrMix, SimInf, SimMultiCorrData, SimRVSequences, SmCCNet, SoupX, SwarmSVM, SystemicR, TAG, TANDEM, TCA, TFisher, TMB, TOHM, TSsmoothing, TTCA, TULIP, TextForecast, TooManyCellsR, TopicScore, VCA, ViSiElse, WLasso, WeMix, WoodburyMatrix, ZIPFA, abnormality, abtest, adjclust, alakazam, altmeta, animalEKF, anticlust, apcluster, apdesign, applicable, ar.matrix, arc, argo, aricode, ashr, asnipe, automultinomial, backbone, bamlss, basefun, bastah, bbmle, beam, benchmarkme, bibliometrix, bigsnpr, biospear, blapsr, blin, blockForest, blockmodeling, bootnet, brainGraph, brant, bravo, brglm2, bridgesampling, brms, btergm, cSEM, cat.dt, catch, cate, cherry, chinese.misc, chords, cleanNLP, clustvarsel, cna, coalescentMCMC, coca, codingMatrices, colourvision, comato, complexplus, conquer, control, cooccurNet, cope, copula, corTest, corpustools, coxinterval, coxme, coxmeg, crisp, crqa, ctsem, ctsemOMX, cytominer, ddpca, deepNN, demu, denoiseR, denseFLMM, detect, diffman, diffusionMap, diproperm, disaggregation, discfrail, diversityForest, dmt, dnet, doBy, dplR, dr4pl, drf, dtwclust, dyngen, dynr, dynutils, dynwrap, eBsc, eRm, eatATA, econet, economiccomplexity, ef, effectFusion, epca, ergm, ess, eva, evclust, evolqg, expose, ez, fExpressCertificates, fGarch, face, facilitation, fad, fastLink, fastNaiveBayes, fastcox, fbar, fcaR, fdapace, fiberLD, flars, fmcmc, fpmoutliers, frailtyEM, frechet, fssemR, fusedest, fuser, gMCP, gMOIP, gRbase, gamm4.test, gcbd, geecure, geex, gemma2, gen3sis, ggmix, gif, gllvm, glmaag, glmmLasso, glmmTMB, glmmsr, glmnetUtils, gnm, goric, graph4lg, graphicalVAR, graphsim, greybox, grf, grpreg, gustave, gwer, hIRT, hal9001, hbm, hbsae, hero, hierarchicalDS, hierarchicalSets, highriskzone, higrad, hmgm, hmi, hmlasso, hopit, hscovar, hts, huge, iAdapt, iCARH, iCellR, iRF, iTOP, icdGLM, igraph, iilasso, immcp, influence.ME, influenceR, inlabru, irtplay, ivmodel, joineRML, joineRmeta, keyATM, kknn, klic, knn.covertree, knockoff, koRpus, ks, landsepi, lavaSearch2, leiden, lgcp, lightgbm, lime, lineartestr, lineqGPR, lmds, lmeresampler, lmvar, locStra, lognorm, lolog, lpbrim, lsbs, ltmle, ludic, lvnet, madness, maotai, marcher, marked, markovchain, mase, mboost, mcglm, mcmcsae, mcompanion, mdatools, mdw, medflex, merDeriv, metaBLUE, metaMix, metaSDTreg, metaSEM, metafuse, metagear, mgcv, mgee2, miRNAss, micemd, midasr, misclassGLM, mistral, mixKernel, mixedCCA, mlapi, mlergm, mlmi, mlmm.gwas, mltools, mme, mmmgee, mosaic, motifcluster, moult, msaenet, mstDIF, multibiplotGUI, multicross, multimark, multinma, multiviewtest, mumm, mvSLOUCH, mvord, mvrsquared, natural, netCoin, netchain, netcom, netcontrol, netdiffuseR, netgsa, netgwas, netregR, networkR, networktree, neuroim, newsmap, nlmm, nlraa, nmathresh, nmslibR, nonlinearTseries, nopaco, nowcasting, nprcgenekeepr, nutriNetwork, nvmix, oem, ompr, ompr.roi, oppr, optBiomarker, optiSel, optiSolve, optweight, opusminer, ordinal, osqp, palasso, panelvar, parglm, pbkrtest, pcgen, pcts, pdynmc, pedigreeTools, perARMA, permubiome, permuco, pez, phangorn, phia, phyloregion, phyr, pkggraph, pmpp, poismf, polmineR, polycor, polywog, powerlmm, powerplus, pre, predictmeans, primePCA, prioritizr, provGraphR, proxyC, prozor, psychonetrics, pulsar, pvclass, qape, qgraph, qrjoint, quantable, quanteda, quanteda.textmodels, quantkriging, quantreg, r2glmm, rNeighborGWAS, rNeighborQTL, rWind, rWishart, ragt2ridges, randomLCA, ranger, rankFD, raptr, rare, rbenvo, rbi.helpers, rbridge, rdomains, recipes, refund, regmedint, repolr, rescue, reticulate, riskParityPortfolio, riskclustr, rmRNAseq, rmatio, rmgarch, robustSingleCell, robustreg, rodd, rolypoly, rosqp, rpql, rr2, rsetse, rsmatrix, rsparse, rsq, rstanarm, rstap, rsvd, sNPLS, saeRobust, samc, sanic, sarsop, sbfc, scTenifoldKnk, scTenifoldNet, scUtils, scalpel, scam, sccore, scrubr, sctransform, seededlda, selac, semnova, seqHMM, shapr, sharpr2, signnet, simExam, simglm, singleCellHaystack, sirus, sklarsomega, slanter, slimrec, smam, smoothedLasso, smurf, spANOVA, spBayes, spGARCH, spaMM, sparseFLMM, sparseHessianFD, sparseMVN, sparsebnUtils, sparseinv, sparsesvd, sparsevar, sparsio, spatgraphs, spatstat, spatstat.Knet, spatstat.data, spatsurv, spdep, spectralGraphTopology, sphet, splm, spmoran, spsur, sqp, stR, stabm, starm, starnet, statcomp, stfit, stm, stocc, strand, stylest, sumFREGAT, superbiclust, surbayes, surrosurv, surveillance, survival, survivalsvm, survtmle, svs, synlik, syt, tcl, tea, tensorr, text2vec, textplot, textrecipes, themetagenomics, threeboost, tidyMicro, tidytext, tmle.npvi, tram, tramME, treeDA, trustOptim, tsDyn, tsrobprep, ttTensor, tukeytrend, tvR, udpipe, ui, umx, unmarked, useful, varTestnlme, varbvs, varjmcm, vennLasso, votesys, wactor, wavScalogram, wfe, widyr, xLLiM, xgboost, xrf, xtreg2way, yotover.

Depended on by ADDT, ADMMnet, ADtools, APML0, BCE, BSW, BTLLasso, BacArena, BayesFactor, BinNonNor, BinNor, Boptbd, BullsEyeR, CLSOCP, CRTgeeDR, CVST, CodataGS, DRR, DTRlearn2, DWDLargeR, DoubleCone, EMCluster, EMMREML, FSTpackage, FTICRMS, FoReco, GPvam, GeDS, GenOrd, GenoScan, GeoDE, GrassmannOptim, HSDiC, HiCfeat, IGG, INLAMSM, KnockoffScreen, L1mstate, LPmerge, LSC, MAP, MBC, MBSP, MCMCglmm, MDPtoolbox, MargCond, Matrix.utils, MedSurvey, Metatron, MultiGHQuad, MultiOrd, MultiVarSel, N2R, NegBinBetaBinreg, NetworkRiskMeasures, ORDER2PARENT, OrdNor, PCovR, POINT, PRISMA, PhylogeneticEM, PivotalR, PoisBinNonNor, PoisBinOrd, PoisBinOrdNonNor, PoisBinOrdNor, PoisNonNor, PoisNor, PrevMap, QRM, QZ, RCBR, RDFTensor, REBayes, REREFACT, RFGLS, RNewsflow, RSarules, RealVAMS, RegSDC, Rmagic, SALES, SKAT, SOR, SSBtools, SmallCountRounding, StableEstim, SuperPCA, TPEA, TimeProjection, TreePar, WGScan, WaveSampling, adapt4pv, adaptMCMC, adaptsmoFMRI, addhaz, ahaz, arm, arules, arulesCBA, aster2, bc3net, bdots, bgsmtr, biglasso, birankr, bnstruct, cAIC4, centiserve, cgam, cjoint, climwin, covLCA, cplm, crrp, cthreshER, ctmcmove, curephEM, cvxbiclustr, dataPreparation, dcGOR, dclone, dglars, dhglm, distrom, dmm, epistasis, epoc, excursions, expm, fanc, fastclime, fda, fdaPDE, frailtyHL, gamlr, gamm4, gcdnet, gdistance, geeM, genlasso, geostatsp, glmm, glmnet, gptk, gremlin, growthrate, grpCox, gvcm.cat, gwerAM, hdlm, hglm, hglm.data, ibmdbR, inca, irlba, islasso, isotonic.pen, kinship2, lassoscore, lcpm, ldr, leidenAlg, lfe, lme4, logcondiscr, mapfit, mbsts, mcen, mclogit, mdhglm, mediation, mefa4, metafor, mgwrsar, mi, msda, msgl, multiAssetOptions, mvglmmRank, nadiv, optbdmaeAT, optimbase, optrcdmaeAT, pedgene, pedigree, pedigreemm, penDvine, pense, phateR, picasso, pleio, poolr, prodest, qlcMatrix, qpcR, quadrupen, rBMF, rSPDE, ramps, randnet, recommenderlab, reglogit, robustlmm, rwc, sRDA, sSDR, sbw, scpm, sdpt3r, sdwd, sensory, serrsBayes, sglOptim, sglasso, snpReady, softImpute, sommer, soptdmaeA, sparsenet, sparsestep, spatialprobit, spatialreg, spatstat.sparse, speedglm, ssfa, stcos, sureLDA, survey, svcm, svmplus, svydiags, sybil, sybilSBML, sybilccFBA, sybilcycleFreeFlux, systemfit, textTinyR, textir, textmineR, tmvtnorm, triversity, tsapp, tvReg, uwot, vagam, winRatioAnalysis, wordspace.

Suggested by AgreementInterval, CARBayes, CLA, ChoiceModelR, DGCA, DPQ, DoE.MIParray, ECOSolveR, ESEA, FSelectorRcpp, GDINA, HSAUR, HSAUR2, HelpersMG, KFAS, LncPath, MARSS, MoBPS, NCmisc, PAGI, PRIMME, R.matlab, RcppArmadillo, Rmpfr, Ryacas, Ryacas0, STPGA, SimSurvNMarker, StanHeaders, WeightSVM, afex, alphastable, anndata, bigsparser, brokenstick, broom, broom.mixed, car, cccd, ccdrAlgorithm, classGraph, clubSandwich, cluster, cmfrec, cobs, corpus, corrgram, cpr, diffusr, dils, dimRed, discSurv, dyndimred, e1071, ePCR, easySdcTable, extraTrees, fabletools, flacco, funrar, gap, gcKrig, gear, gemtc, genscore, ggeffects, glmpca, gmodels, gsbm, h2o, hamlet, hardhat, hdi, hmclearn, hydra, insight, ivdesign, ivmte, kernelTDA, lava, lda, leastcostpath, lfactors, loe, lotri, mefa, mlr3, mlt.docreg, naivebayes, neat, parameters, parsnip, pcFactorStan, pcalg, performance, pergola, pmml, porridge, psqn, r2mlm, rARPACK, rattle, rmumps, robustbase, rope, round, rstan, sfsmisc, simstudy, sirt, spam, sptm, srvyr, stabledist, tableone, tramnet, tscount, visreg, xrnet, zenplots.

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


See at CRAN