Learn R Programming

Matrix (version 1.7-6)

Sparse and Dense Matrix Classes and Methods

Description

A rich hierarchy of sparse and dense matrix classes, including general, symmetric, triangular, and diagonal matrices with numeric, logical, or pattern entries. Efficient methods for operating on such matrices, often wrapping the 'BLAS', 'LAPACK', and 'SuiteSparse' libraries.

Copy Link

Version

Install

install.packages('Matrix')

Monthly Downloads

153,963

Version

1.7-6

License

GPL (>= 2) | file LICENCE

Maintainer

Martin Maechler

Last Published

July 25th, 2026

Functions in Matrix (1.7-6)

CsparseMatrix-class

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

Dense Cholesky Factorizations
CAex

Albers' example Matrix with "Difficult" Eigen Factorization
KNex

Koenker-Ng Example Sparse Model Matrix and Response Vector
BunchKaufman-methods

Methods for Bunch-Kaufman Factorization
CHMfactor-class

Sparse Cholesky Factorizations
Diagonal

Construct a Diagonal Matrix
Hilbert

Generate a Hilbert matrix
BunchKaufman-class

Dense Bunch-Kaufman Factorizations
Cholesky-methods

Methods for Cholesky Factorization
Matrix-defunct

Defunct Functions in Package Matrix
Matrix-deprecated

Deprecated Functions in Package Matrix
MatrixClass

The Matrix (Super-) Class of a Class
KhatriRao

Khatri-Rao Matrix Product
RsparseMatrix-class

Class "RsparseMatrix" of Sparse Matrices in Row-compressed Form
Matrix

Construct a Classed Matrix
Matrix-notyet

Virtual Classes Not Yet Really Implemented and Used
Matrix-class

Virtual Class "Matrix" of Matrices
MatrixFactorization-class

Virtual Class "MatrixFactorization" of Matrix Factorizations
Schur-class

Schur Factorizations
asUniqueT

Standardize a Sparse Matrix in Triplet Format
bdiag

Construct a Block Diagonal Matrix
abIseq

Sequence Generation of "abIndex", Abstract Index Vectors
TsparseMatrix-class

Class "TsparseMatrix" of Sparse Matrices in Triplet Form
Schur-methods

Methods for Schur Factorization
all.equal-methods

Matrix Package Methods for Function all.equal()
band-methods

Extract bands of a matrix
abIndex-class

Class "abIndex" of Abstract Index Vectors
USCounties

Contiguity Matrix of U.S. Counties
bandSparse

Construct Sparse Banded Matrix from (Sup-/Super-) Diagonals
boolmatmult-methods

Boolean Arithmetic Matrix Products: %&% and Methods
coerce-methods-graph

Conversions "graph" <--> (sparse) Matrix
ddenseMatrix-class

Virtual Class "ddenseMatrix" of Numeric Dense Matrices
coerce-methods-SparseM

Sparse Matrix Coercion from and to those from package SparseM
dMatrix-class

(Virtual) Class "dMatrix" of "double" Matrices
chol2inv-methods

Inverse from Cholesky Factor
cbind2-methods

'cbind()' and 'rbind()' recursively built on cbind2/rbind2
chol-methods

Compute the Cholesky Factor of a Matrix
dgTMatrix-class

Sparse matrices in triplet form
dgRMatrix-class

Sparse Compressed, Row-oriented Numeric Matrices
denseMatrix-class

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

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

Class "diagonalMatrix" of Diagonal Matrices
dimScale

Scale the Rows and Columns of a Matrix
ddiMatrix-class

Class "ddiMatrix" of Diagonal Numeric Matrices
denseLU-class

Dense LU Factorizations
dgeMatrix-class

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

Transform Triangular Matrices from Unit Triangular to General Triangular and Back
condest

Compute Approximate CONDition number and 1-Norm of (Large) Matrices
colSums-methods

Form Row and Column Sums and Means
drop0

Drop Non-Structural Zeros from a Sparse Matrix
dtCMatrix-class

Triangular, (compressed) sparse column matrices
dsRMatrix-class

Symmetric Sparse Compressed Row Matrices
dpoMatrix-class

Positive Semi-definite Dense (Packed | Non-packed) Numeric Matrices
dmperm

Dulmage-Mendelsohn Permutation / Decomposition
dtRMatrix-class

Triangular Sparse Compressed Row Matrices
dsCMatrix-class

Numeric Symmetric Sparse (column compressed) Matrices
dtpMatrix-class

Packed Triangular Dense Matrices - "dtpMatrix"
dsparseMatrix-class

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

Symmetric Dense (Packed or Unpacked) Numeric Matrices
dtrMatrix-class

Triangular, dense, numeric matrices
generalMatrix-class

Class "generalMatrix" of General Matrices
expm-methods

Matrix Exponential
expand-methods

Expand Matrix Factorizations
forceSymmetric-methods

Force a Matrix to 'symmetricMatrix' Without Symmetry Checks
facmul-methods

Multiplication by Factors from Matrix Factorizations
externalFormats

Read and write external matrix formats
formatSparseM

Formatting Sparse Numeric Matrices Utilities
index-class

Virtual Class “index” of Index Vectors
isTriangular-methods

Test whether a Matrix is Triangular or Diagonal
kronecker-methods

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

Index Matrices
invertPerm

Utilities for Permutation Vectors
is.na-methods

is.na(), is.finite() Methods for 'Matrix' Objects
ltrMatrix-class

Triangular Dense Logical Matrices
mat2triplet

Map Matrix to its Triplet Representation
nearPD

Nearest Positive Definite Matrix
lu-methods

Methods for LU Factorization
matmult-methods

Matrix (Cross) Products (of Transpose)
ntrMatrix-class

Triangular Dense Logical Matrices
pack-methods

Representation of Packed and Unpacked Dense Matrices
nnzero-methods

The Number of Non-Zero Values of a Matrix
nsyMatrix-class

Symmetric Dense Nonzero-Pattern Matrices
pMatrix-class

Permutation matrices
solve-methods

Methods in Package Matrix for Function solve
rleDiff-class

Class "rleDiff" of rle(diff(.)) Stored Vectors
rcond-methods

Estimate the Reciprocal Condition Number
qr-methods

Methods for QR Factorization
sparse.model.matrix

Construct Sparse Design / Model Matrices