Learn R Programming

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

Matrix (version 0.9975-9)

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

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

March 11th, 2025

Functions in Matrix (0.9975-9)

bdiag

Construct a Block Diagonal Matrix
index-class

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

Extract bands of a matrix
compMatrix-class

Class "compMatrix" of Composite (Factorizable) Matrices
expm

Matrix exponential
dsCMatrix-class

Numeric Symmetric Sparse (column compressed) Matrices
Schur

Schur Decomposition of a Matrix
dsyMatrix-class

Symmetric Dense Numeric Matrices
[<--methods

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

Cholesky Decompositions of dsCMatrix Objects
Matrix

Construct a Classed Matrix
MatrixFactorization-class

Class "MatrixFactorization" of Matrix Factorizations
dsRMatrix-class

Symmetric Sparse Compressed Row Matrices
ngeMatrix-class

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

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

Class "ddiMatrix" of Diagonal Numeric Matrices
facmul

Multiplication by Decomposition Factors
externalFormats

Read and write external matrix formats
dtpMatrix-class

Packed triangular dense matrices
Cholesky-class

Cholesky and Bunch-Kaufman Decompositions
LU-class

LU (dense) Matrix Decompositions
isSymmetric-methods

Methods for Function isSymmetric in Package 'Matrix'
Hilbert

Generate a Hilbert matrix
TsparseMatrix-class

Class "TsparseMatrix" of Sparse Matrices in Triplet Form
SparseM-conversions

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

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

Class "dgeMatrix" of Dense Numeric (S4 Class) Matrices
all-methods

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

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

Compressed, sparse, column-oriented numeric matrices
Diagonal

Create Diagonal Matrix Object
lu

Triangular Decomposition of a Square Matrix
dMatrix-class

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

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

Compressed, sparse, row-oriented numeric matrices
Cholesky

Cholesky Decomposition of a Sparse Matrix
RsparseMatrix-class

Class "RsparseMatrix" of Sparse Matrices in Column-compressed Form
lsparseMatrix-classes

Sparse logical matrices
lgeMatrix-class

Class "lgeMatrix" of General Dense Logical Matrices
[-methods

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

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

CHOLMOD-based Cholesky Factorizations
atomicVector-class

Virtual Class "atomicVector" of Atomic Vectors
dtrMatrix-class

Triangular, dense, numeric matrices
nMatrix-class

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

Positive Semi-definite Dense Numeric Matrices
dtCMatrix-class

Triangular, (compressed) sparse column matrices
CAex

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

Virtual Class "Matrix" Class of Matrices
ddenseMatrix-class

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

Virtual Class of Triangular Matrices in package:Matrix
rcond

Estimate the Reciprocal Condition Number
pMatrix-class

Permutation matrices
Unused-classes

Virtual Classes Not Yet Used
nnzero

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

Class "diagonalMatrix" of Diagonal Matrices
expand

Expand a Decomposition into Factors
symmetricMatrix-class

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

Sparse matrices in triplet form
norm

Norm of a Matrix
generalMatrix-class

Class "generalMatrix" of General Matrices
qr-methods

Methods for the qr generic
ldiMatrix-class

Class "ldiMatrix" of Diagonal Logical Matrices
ltrMatrix-class

Triangular Dense Logical Matrices
sparseLU-class

Sparse LU decomposition of a square sparse matrix
tcrossprod

Cross-product of transpose
lsyMatrix-class

Symmetric Dense Logical Matrices
unpack

Full Storage Representation of Packed Matrices
nsparseMatrix-classes

Sparse logical matrices
sparseMatrix-class

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

Sparse QR decomposition of a sparse matrix
nsyMatrix-class

Symmetric Dense Nonzero-Pattern Matrices
replValue-class

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

Triangular Dense Logical Matrices
ndenseMatrix-class

Virtual Class "ndenseMatrix" of Dense Logical Matrices