Learn R Programming

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

Matrix (version 0.99875-2)

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

91,970

Version

0.99875-2

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

Last Published

August 28th, 2025

Functions in Matrix (0.99875-2)

Matrix

Construct a Classed Matrix
Hilbert

Generate a Hilbert matrix
dtCMatrix-class

Triangular, (compressed) sparse column matrices
expm

Matrix exponential
Cholesky

Cholesky Decomposition of a Sparse Matrix
all-methods

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

Class "generalMatrix" of General Matrices
tcrossprod

Cross-product of transpose
Matrix-class

Virtual Class "Matrix" Class of Matrices
rcond

Estimate the Reciprocal Condition Number
CsparseMatrix-class

Class "CsparseMatrix" of Sparse Matrices in Column-compressed Form
KNex

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

Triangular Dense Logical Matrices
ddenseMatrix-class

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

(Virtual) Class "dMatrix" of "double" Matrices
ldiMatrix-class

Class "ldiMatrix" of Diagonal Logical Matrices
lsyMatrix-class

Symmetric Dense Logical Matrices
dpoMatrix-class

Positive Semi-definite Dense Numeric Matrices
dgRMatrix-class

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

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

Methods for "[": Extraction or Subsetting in Package 'Matrix'
[<--methods

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

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

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

Multiplication by Decomposition Factors
triangularMatrix-class

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

Cholesky Decompositions of dsCMatrix Objects
dgTMatrix-class

Sparse matrices in triplet form
dtpMatrix-class

Packed triangular dense matrices
colSums

Form Row and Column Sums and Means
expand

Expand a Decomposition into Factors
Diagonal

Create Diagonal Matrix Object
ddiMatrix-class

Class "ddiMatrix" of Diagonal Numeric Matrices
CAex

Albers' example Matrix with "Difficult" Eigen Factorization
qr-methods

Methods for the qr generic
kronecker-methods

Methods for Function 'kronecker()' in Package 'Matrix'
bdiag

Construct a Block Diagonal Matrix
dgeMatrix-class

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

Triangular Sparse Compressed Row Matrices
RsparseMatrix-class

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

Compressed, sparse, column-oriented numeric matrices
cBind

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

Class "diagonalMatrix" of Diagonal Matrices
band

Extract bands of a matrix
ngeMatrix-class

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

Triangular Decomposition of a Square Matrix
Schur

Schur Decomposition of a Matrix
ltrMatrix-class

Triangular Dense Logical Matrices
dsyMatrix-class

Symmetric Dense Numeric Matrices
pMatrix-class

Permutation matrices
sparseLU-class

Sparse LU decomposition of a square sparse matrix
SparseM-conversions

Sparse Matrix Coercion from and to those from package "SparseM"
norm

Norm of a Matrix
nMatrix-class

Class "nMatrix" of Non-zero Pattern Matrices
externalFormats

Read and write external matrix formats
compMatrix-class

Class "compMatrix" of Composite (Factorizable) Matrices
unpack

Full Storage Representation of Packed Matrices
nnzero

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

Numeric Symmetric Sparse (column compressed) Matrices
drop0

Drop "Explicit Zeroes" from a Sparse Matrix
replValue-class

Virtual Class "replValue" - Simple Class for subassignment Values
spMatrix

Sparse Matrix Constructor From Triplet
ldenseMatrix-class

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

Virtual Class "ndenseMatrix" of Dense Logical Matrices
isSymmetric-methods

Methods for Function isSymmetric in Package 'Matrix'
nsparseMatrix-classes

Sparse logical matrices
denseMatrix-class

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

Symmetric Dense Nonzero-Pattern Matrices
sparseVector-class

Sparse Vector Classes
sparseQR-class

Sparse QR decomposition of a sparse matrix
Unused-classes

Virtual Classes Not Yet Used
dsRMatrix-class

Symmetric Sparse Compressed Row Matrices
lgeMatrix-class

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

CHOLMOD-based Cholesky Factorizations
Cholesky-class

Cholesky and Bunch-Kaufman Decompositions
MatrixFactorization-class

Class "MatrixFactorization" of Matrix Factorizations
atomicVector-class

Virtual Class "atomicVector" of Atomic Vectors
index-class

Virtual Class "index" - Simple Class for Matrix Indices
lsparseMatrix-classes

Sparse logical matrices
symmetricMatrix-class

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

LU (dense) Matrix Decompositions