Learn R Programming

⚠️There's a newer version (1.7-4) of this package.Take me there.

Matrix (version 0.995-7)

A Matrix package for R

Description

Classes and methods for numerical linear algebra using Lapack, LDL, and Metis.

Copy Link

Version

Install

install.packages('Matrix')

Monthly Downloads

91,970

Version

0.995-7

License

GPL version 2 or later. This R package includes code from the Metis package and from NIST. This code is covered by separate copyrights; see the file Copyrights for details. This R package includes code from the University of Florida sparse matrix library maintained by Tim Davis. All sections of that code are covered by the GPL or LGPL licenses. See the directory UFsparse for details.

Maintainer

Douglas Bates

Last Published

August 28th, 2025

Functions in Matrix (0.995-7)

ddenseMatrix-class

Virtual Class "ddenseMatrix" of Numeric Dense Matrices
BIC

Bayesian Information Criterion
unpack

Full Storage Representation of Packed Matrices
TsparseMatrix-class

Class "TsparseMatrix" of Sparse Matrices in Triplet Form
facmul

Multiplication by Decomposition Factors
rcond

Estimate the Reciprocal Condition Number
norm

Norm of a Matrix
RsparseMatrix-class

Class "RsparseMatrix" of Sparse Matrices in Column-compressed Form
tcrossprod

Cross-product of transpose
dtpMatrix-class

Packed triangular dense matrices
Matrix-class

Virtual Class "Matrix" Class of Matrices
Schur

Schur Decomposition of a Matrix
dCholCMatrix-class

Cholesky Decompositions of dsCMatrix Objects
dtrMatrix-class

Triangular, dense, numeric matrices
Diagonal

Create Diagonal Matrix Object
fixef

Extract Fixed Effects
dsparseMatrix-class

Virtual Class "dsparseMatrix" of Numeric Sparse Matrices
denseMatrix-class

Virtual Class "denseMatrix" of All Dense Matrices
diagonalMatrix-class

Class "diagonalMatrix" of Diagonal Matrices
dMatrix-class

(Virtual) Class "dMatrix" of "double" Matrices
lsparseMatrix-classes

Sparse logical matrices
dsCMatrix-class

Numeric Symmetric Sparse (column compressed) Matrices
dtCMatrix-class

Triangular, (compressed) sparse column matrices
[-methods

Methods for "[": Extraction or Subsetting in Package 'Matrix'
dgeMatrix-class

Class "dgeMatrix" of Dense Numeric (S4 Class) Matrices
dgRMatrix-class

Compressed, sparse, row-oriented numeric matrices
index-class

Virtual Class "index" - Simple Class for Matrix Indices
dgCMatrix-class

Compressed, sparse, column-oriented numeric matrices
expm

Matrix exponential
lu

Triangular Decomposition of a Square Matrix
lmer-class

Mixed Model Representations and *mer Methods
KNex

Koenker-Ng Example Sparse Model Matrix and Response Vector
Matrix

Construct a Classed Matrix
ddiMatrix-class

Class "ddiMatrix" of Diagonal Numeric Matrices
mcmcsamp

Generate an MCMC sample
sleepstudy

Reaction times in a sleep deprivation study
VarCorr

Extract variance and correlation components
corrmatrix-class

Class "corrmatrix"
pMatrix-class

Permutation matrices
[<--methods

Methods for "[<-" - Assigning to Subsets for 'Matrix'
dsRMatrix-class

Symmetric Sparse Compressed Row Matrices
CsparseMatrix-class

Class "CsparseMatrix" of Sparse Matrices in Column-compressed Form
VarCorr-class

Class "VarCorr"
expand

Expand a Decomposition into Factors
lgeMatrix-class

Class "lgeMatrix" of General Dense Logical Matrices
sparseMatrix-class

Virtual Class "sparseMatrix" --- Mother of Sparse Matrices
dgTMatrix-class

Sparse matrices in triplet form
triangularMatrix-class

Virtual Class of Triangular Matrices in package:Matrix
compMatrix-class

Class "compMatrix" of Composite (Factorizable) Matrices
lmer

Fit (Generalized) Linear Mixed-Effects Models
dpoMatrix-class

Positive Semi-definite Dense Numeric Matrices
LU-class

LU Matrix Decompositions
CHMfactor-class

CHOLMOD-based Cholesky factorizations
dsyMatrix-class

Symmetric Dense Numeric Matrices
lsyMatrix-class

Symmetric Dense Logical Matrices
ldiMatrix-class

Class "ldiMatrix" of Diagonal Logical Matrices
generalMatrix-class

Class "generalMatrix" of General Matrices
Hilbert

Generate a Hilbert matrix
ldenseMatrix-class

Virtual Class "ldenseMatrix" of Dense Logical Matrices
ltrMatrix-class

Triangular Dense Logical Matrices
ranef

Extract Random Effects
Unused-classes

Virtual Classes Not Yet Used
Cholesky-class

Cholesky and Bunch-Kaufman Decompositions
externalFormats

Read and write external matrix formats
symmetricMatrix-class

Virtual Class of Symmetric Matrices in package:Matrix