Learn R Programming

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

Matrix (version 0.9975-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

155,110

Version

0.9975-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

Douglas Bates

Last Published

March 11th, 2025

Functions in Matrix (0.9975-2)

Diagonal

Create Diagonal Matrix Object
Matrix-class

Virtual Class "Matrix" Class of Matrices
TsparseMatrix-class

Class "TsparseMatrix" of Sparse Matrices in Triplet Form
Hilbert

Generate a Hilbert matrix
CHMfactor-class

CHOLMOD-based Cholesky factorizations
dtpMatrix-class

Packed triangular dense matrices
CsparseMatrix-class

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

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

Triangular Sparse Compressed Row Matrices
band

Extract bands of a matrix
isSymmetric-methods

Methods for Function isSymmetric in Package 'Matrix'
dsRMatrix-class

Symmetric Sparse Compressed Row Matrices
dsCMatrix-class

Numeric Symmetric Sparse (column compressed) Matrices
dCholCMatrix-class

Cholesky Decompositions of dsCMatrix Objects
expand

Expand a Decomposition into Factors
dgRMatrix-class

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

Cholesky and Bunch-Kaufman Decompositions
diagonalMatrix-class

Class "diagonalMatrix" of Diagonal Matrices
denseMatrix-class

Virtual Class "denseMatrix" of All Dense Matrices
Matrix

Construct a Classed Matrix
SparseM-conversions

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

Symmetric Dense Numeric Matrices
dtCMatrix-class

Triangular, (compressed) sparse column matrices
facmul

Multiplication by Decomposition Factors
CAex

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

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

Class "generalMatrix" of General Matrices
dgCMatrix-class

Compressed, sparse, column-oriented numeric matrices
[-methods

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

Sparse matrices in triplet form
Cholesky

Cholesky Decomposition of a Sparse Matrix
KNex

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

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

Permutation matrices
LU-class

LU (dense) Matrix Decompositions
ddiMatrix-class

Class "ddiMatrix" of Diagonal Numeric Matrices
norm

Norm of a Matrix
sparseQR-class

Sparse QR decomposition of a sparse matrix
[<--methods

Methods for "[<-" - Assigning to Subsets for 'Matrix'
Schur

Schur Decomposition of a Matrix
sparseMatrix-class

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

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

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

Sparse logical matrices
nMatrix-class

Class "nMatrix" of Non-zero Pattern Matrices
ngeMatrix-class

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

Read and write external matrix formats
ndenseMatrix-class

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

Class "ldiMatrix" of Diagonal Logical Matrices
tcrossprod

Cross-product of transpose
MatrixFactorization-class

Class "MatrixFactorization" of Matrix Factorizations
ltrMatrix-class

Triangular Dense Logical Matrices
lu

Triangular Decomposition of a Square Matrix
dsparseMatrix-class

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

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

Full Storage Representation of Packed Matrices
ldenseMatrix-class

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

Symmetric Dense Nonzero-Pattern Matrices
sparseLU-class

Sparse LU decomposition of a square sparse matrix
ntrMatrix-class

Triangular Dense Logical Matrices
nsparseMatrix-classes

Sparse logical matrices
expm

Matrix exponential
lsyMatrix-class

Symmetric Dense Logical Matrices
triangularMatrix-class

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

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

Virtual Class "replValue" - Simple Class for subassignment Values
Unused-classes

Virtual Classes Not Yet Used
compMatrix-class

Class "compMatrix" of Composite (Factorizable) Matrices
dpoMatrix-class

Positive Semi-definite Dense Numeric Matrices
qr-methods

Methods for the qr generic
rcond

Estimate the Reciprocal Condition Number