Learn R Programming

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

Matrix (version 0.99875-0)

A Matrix package for R

Description

Classes and methods for dense and sparse matrices and operations on them using Lapack, CSparse and CHOLMOD

Copy Link

Version

Install

install.packages('Matrix')

Monthly Downloads

110,389

Version

0.99875-0

License

GPL version 2 or later. This R package includes libraries CHOLMOD, AMD, COLAMD and CSparse 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 doc/UFsparse for details.

Maintainer

Doug and Martin

Last Published

August 28th, 2025

Functions in Matrix (0.99875-0)

ddenseMatrix-class

Virtual Class "ddenseMatrix" of Numeric Dense Matrices
denseMatrix-class

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

(Virtual) Class "dMatrix" of "double" Matrices
Schur

Schur Decomposition of a Matrix
dsRMatrix-class

Symmetric Sparse Compressed Row Matrices
all-methods

"Matrix" Methods for Functions all() and any()
CsparseMatrix-class

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

Triangular Sparse Compressed Row Matrices
[-methods

Methods for "[": Extraction or Subsetting in Package 'Matrix'
Hilbert

Generate a Hilbert matrix
dpoMatrix-class

Positive Semi-definite Dense Numeric Matrices
band

Extract bands of a matrix
KNex

Koenker-Ng Example Sparse Model Matrix and Response Vector
Matrix-class

Virtual Class "Matrix" Class of Matrices
Matrix

Construct a Classed Matrix
index-class

Virtual Class "index" - Simple Class for Matrix Indices
Diagonal

Create Diagonal Matrix Object
externalFormats

Read and write external matrix formats
dsCMatrix-class

Numeric Symmetric Sparse (column compressed) Matrices
RsparseMatrix-class

Class "RsparseMatrix" of Sparse Matrices in Column-compressed Form
dgRMatrix-class

Compressed, sparse, row-oriented numeric matrices
bdiag

Construct a Block Diagonal Matrix
dgeMatrix-class

Class "dgeMatrix" of Dense Numeric (S4 Class) Matrices
expand

Expand a Decomposition into Factors
lu

Triangular Decomposition of a Square Matrix
diagonalMatrix-class

Class "diagonalMatrix" of Diagonal Matrices
norm

Norm of a Matrix
cBind

Versions of 'cbind' and 'rbind' recursively built on cbind2/rbind2
dgTMatrix-class

Sparse matrices in triplet form
ldenseMatrix-class

Virtual Class "ldenseMatrix" of Dense Logical Matrices
Unused-classes

Virtual Classes Not Yet Used
TsparseMatrix-class

Class "TsparseMatrix" of Sparse Matrices in Triplet Form
expm

Matrix exponential
dtCMatrix-class

Triangular, (compressed) sparse column matrices
ltrMatrix-class

Triangular Dense Logical Matrices
dgCMatrix-class

Compressed, sparse, column-oriented numeric matrices
nMatrix-class

Class "nMatrix" of Non-zero Pattern Matrices
[<--methods

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

Virtual Class "ndenseMatrix" of Dense Logical Matrices
lsparseMatrix-classes

Sparse logical matrices
nsyMatrix-class

Symmetric Dense Nonzero-Pattern Matrices
Cholesky

Cholesky Decomposition of a Sparse Matrix
dtpMatrix-class

Packed triangular dense matrices
ngeMatrix-class

Class "ngeMatrix" of General Dense Nonzero-pattern Matrices
CAex

Albers' example Matrix with "Difficult" Eigen Factorization
lsyMatrix-class

Symmetric Dense Logical Matrices
generalMatrix-class

Class "generalMatrix" of General Matrices
sparseLU-class

Sparse LU decomposition of a square sparse matrix
CHMfactor-class

CHOLMOD-based Cholesky Factorizations
replValue-class

Virtual Class "replValue" - Simple Class for subassignment Values
ntrMatrix-class

Triangular Dense Logical Matrices
pMatrix-class

Permutation matrices
sparseMatrix-class

Virtual Class "sparseMatrix" --- Mother of Sparse Matrices
facmul

Multiplication by Decomposition Factors
atomicVector-class

Virtual Class "atomicVector" of Atomic Vectors
kronecker-methods

Methods for Function 'kronecker()' in Package 'Matrix'
dCholCMatrix-class

Cholesky Decompositions of dsCMatrix Objects
tcrossprod

Cross-product of transpose
compMatrix-class

Class "compMatrix" of Composite (Factorizable) Matrices
unpack

Full Storage Representation of Packed Matrices
qr-methods

Methods for the qr generic
Cholesky-class

Cholesky and Bunch-Kaufman Decompositions
lgeMatrix-class

Class "lgeMatrix" of General Dense Logical Matrices
nsparseMatrix-classes

Sparse logical matrices
sparseQR-class

Sparse QR decomposition of a sparse matrix
dsyMatrix-class

Symmetric Dense Numeric Matrices
rcond

Estimate the Reciprocal Condition Number
SparseM-conversions

Sparse Matrix Coercion from and to those from package "SparseM"
ddiMatrix-class

Class "ddiMatrix" of Diagonal Numeric Matrices
triangularMatrix-class

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

Virtual Class of Symmetric Matrices in package:Matrix
dsparseMatrix-class

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

Class "ldiMatrix" of Diagonal Logical Matrices
LU-class

LU (dense) Matrix Decompositions
MatrixFactorization-class

Class "MatrixFactorization" of Matrix Factorizations
isSymmetric-methods

Methods for Function isSymmetric in Package 'Matrix'
nnzero

The Number of Non-Zero Values of a Matrix