Learn R Programming

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

Matrix (version 0.999375-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.999375-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

March 11th, 2025

Functions in Matrix (0.999375-2)

Matrix

Construct a Classed Matrix
compMatrix-class

Class "compMatrix" of Composite (Factorizable) Matrices
[-methods

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

Matrix Norms
externalFormats

Read and write external matrix formats
dtRMatrix-class

Triangular Sparse Compressed Row Matrices
[<--methods

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

Cholesky and Bunch-Kaufman Decompositions
MatrixFactorization-class

Class "MatrixFactorization" of Matrix Factorizations
LU-class

LU (dense) Matrix Decompositions
CsparseMatrix-class

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

Class "TsparseMatrix" of Sparse Matrices in Triplet Form
ddiMatrix-class

Class "ddiMatrix" of Diagonal Numeric Matrices
nMatrix-class

Class "nMatrix" of Non-zero Pattern Matrices
nnzero

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

Sparse QR decomposition of a sparse matrix
lgeMatrix-class

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

"Matrix" Methods for Functions all() and any()
expm

Matrix exponential
colSums

Form Row and Column Sums and Means
dtCMatrix-class

Triangular, (compressed) sparse column matrices
Cholesky

Cholesky Decomposition of a Sparse Matrix
index-class

Virtual Class "index" - Simple Class for Matrix Indices
dtpMatrix-class

Packed triangular dense matrices
dMatrix-class

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

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

Virtual Class "dsparseMatrix" of Numeric Sparse Matrices
SparseM-conversions

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

Class "SPQR" of SuiteSparse QR multifrontal sparse QR Decompositions
Schur

Schur Decomposition of a Matrix
USCounties

USCounties Contiguity Matrix
dsRMatrix-class

Symmetric Sparse Compressed Row Matrices
dgeMatrix-class

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

Full Storage Representation of Packed Matrices
kronecker-methods

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

Cholesky Decompositions of dsCMatrix Objects
cBind

Versions of 'cbind' and 'rbind' recursively built on cbind2/rbind2
BunchKaufman-methods

Bunch-Kaufman Decomposition Methods
expand

Expand a Decomposition into Factors
CHMfactor-class

CHOLMOD-based Cholesky Factorizations
nsyMatrix-class

Symmetric Dense Nonzero-Pattern Matrices
image-methods

Methods for image() in Package 'Matrix'
Diagonal

Create Diagonal Matrix Object
lu

Triangular Decomposition of a Square Matrix
ngeMatrix-class

Class "ngeMatrix" of General Dense Nonzero-pattern Matrices
lsyMatrix-class

Symmetric Dense Logical Matrices
facmul

Multiplication by Decomposition Factors
CAex

Albers' example Matrix with "Difficult" Eigen Factorization
bdiag

Construct a Block Diagonal Matrix
Matrix-class

Virtual Class "Matrix" Class of Matrices
triangularMatrix-class

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

Sparse matrices in triplet form
dsCMatrix-class

Numeric Symmetric Sparse (column compressed) Matrices
sparseVector-class

Sparse Vector Classes
dpoMatrix-class

Positive Semi-definite Dense Numeric Matrices
diagonalMatrix-class

Class "diagonalMatrix" of Diagonal Matrices
isSymmetric-methods

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

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

Sparse Compressed, Row-oriented Numeric Matrices
Hilbert

Generate a Hilbert matrix
nsparseMatrix-classes

Sparse logical matrices
qr-methods

Methods for the qr generic
Schur-class

Class "Schur" of Schur Matrix Factorizations
generalMatrix-class

Class "generalMatrix" of General Matrices
printSpMatrix

Print Sparse Matrices Flexibly
drop0

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

Triangular Dense Logical Matrices
ntrMatrix-class

Triangular Dense Logical Matrices
dsyMatrix-class

Symmetric Dense Numeric Matrices
nearPD

Nearest Matrix to a Positive Definite Matrix
atomicVector-class

Virtual Class "atomicVector" of Atomic Vectors
ddenseMatrix-class

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

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

Sparse LU decomposition of a square sparse matrix
RsparseMatrix-class

Class "RsparseMatrix" of Sparse Matrices in Column-compressed Form
tcrossprod

Cross-product of transpose
dgCMatrix-class

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

Permutation matrices
band

Extract bands of a matrix
rcond

Estimate the Reciprocal Condition Number
sparseMatrix-class

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

Sparse Matrix Constructor From Triplet
forceSymmetric

Force a Matrix to 'symmetricMatrix' Without Symmetry Checks
lsparseMatrix-classes

Sparse logical matrices
Unused-classes

Virtual Classes Not Yet Really Implemented and Used
ldiMatrix-class

Class "ldiMatrix" of Diagonal Logical Matrices
spqr

SuiteSparse QR factorization of Sparse Matrix
all.equal-methods

Matrix Methods for Function all.equal()
chol

Choleski Decomposition - 'Matrix' S4 Generic
replValue-class

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

Cross Tabulation, Optionally Sparse
symmetricMatrix-class

Virtual Class of Symmetric Matrices in package:Matrix
symmpart

Symmetric Part and Skew(symmetric) Part of a Matrix
is.na-methods

is.na() Methods for 'Matrix' Objects
number-class

Class "number" of Possibly Complex Numbers
sparseMatrix

General Sparse Matrix Construction from Nonzero Entries
bandSparse

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

Koenker-Ng Example Sparse Model Matrix and Response Vector
rankMatrix

Rank of a Matrix