Learn R Programming

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

Matrix (version 1.5-4.1)

Sparse and Dense Matrix Classes and Methods

Description

A rich hierarchy of sparse and dense matrix classes, including general, triangular, symmetric, 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

155,110

Version

1.5-4.1

License

GPL (>= 2) | file LICENCE

Maintainer

Martin Maechler

Last Published

May 18th, 2023

Functions in Matrix (1.5-4.1)

CsparseMatrix-class

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

CHOLMOD-based Cholesky Factorizations
Diagonal

Construct a Diagonal Matrix
Cholesky

Cholesky Decomposition of a Sparse Matrix
Cholesky-class

Cholesky and Bunch-Kaufman Decompositions
LU-class

LU (dense) Matrix Decompositions
Schur-class

Class "Schur" of Schur Matrix Factorizations
Schur

Schur Decomposition of a Matrix
Matrix-defunct

Defunct Functions in Package Matrix
Matrix

Construct a Classed Matrix
Matrix-deprecated

Deprecated Functions in Package Matrix
Matrix-class

Virtual Class "Matrix" Class of Matrices
MatrixClass

The Matrix (Super-) Class of a Class
SparseM-conversions

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

Class "MatrixFactorization" of Matrix Factorizations
RsparseMatrix-class

Class "RsparseMatrix" of Sparse Matrices in Row-compressed Form
TsparseMatrix-class

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

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

Sequence Generation of "abIndex", Abstract Index Vectors
USCounties

USCounties Contiguity Matrix
[-methods

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

Methods for "[<-" - Assigning to Subsets for 'Matrix'
chol2inv-methods

Inverse from Choleski or QR Decomposition -- Matrix Methods
bandSparse

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

Class "abIndex" of Abstract Index Vectors
band

Extract bands of a matrix
colSums

Form Row and Column Sums and Means
atomicVector-class

Virtual Class "atomicVector" of Atomic Vectors
all.equal-methods

Matrix Package Methods for Function all.equal()
condest

Compute Approximate CONDition number and 1-Norm of (Large) Matrices
dgeMatrix-class

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

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

The Cholesky Decomposition - 'Matrix' S4 Generic and Methods
compMatrix-class

Class "compMatrix" of Composite (Factorizable) Matrices
bdiag

Construct a Block Diagonal Matrix
dgTMatrix-class

Sparse matrices in triplet form
diagU2N

Transform Triangular Matrices from Unit Triangular to General Triangular and Back
diagonalMatrix-class

Class "diagonalMatrix" of Diagonal Matrices
dsparseMatrix-class

Virtual Class "dsparseMatrix" of Numeric Sparse Matrices
%&%-methods

Boolean Arithmetic Matrix Products: %&% and Methods
dtCMatrix-class

Triangular, (compressed) sparse column matrices
dgCMatrix-class

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

Class "ddiMatrix" of Diagonal Numeric Matrices
dtRMatrix-class

Triangular Sparse Compressed Row Matrices
dgRMatrix-class

Sparse Compressed, Row-oriented Numeric Matrices
denseMatrix-class

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

Numeric Symmetric Sparse (column compressed) Matrices
dsyMatrix-class

Symmetric Dense (Packed or Unpacked) Numeric Matrices
fastMisc

“Low Level” Coercions and Methods
dsRMatrix-class

Symmetric Sparse Compressed Row Matrices
dpoMatrix-class

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

Formatting Sparse Numeric Matrices Utilities
generalMatrix-class

Class "generalMatrix" of General Matrices
drop0

Drop "Explicit Zeroes" from a Sparse Matrix
is.na-methods

is.na(), is.finite() Methods for 'Matrix' Objects
invPerm

Inverse Permutation Vector
forceSymmetric

Force a Matrix to 'symmetricMatrix' Without Symmetry Checks
ddenseMatrix-class

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

Packed Triangular Dense Matrices - "dtpMatrix"
dMatrix-class

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

Triangular, dense, numeric matrices
dimScale

Scale the Rows and Columns of a Matrix
lu

(Generalized) Triangular Decomposition of a Matrix
expand

Expand a (Matrix) Decomposition into Factors
isTriangular

Test whether a Matrix is Triangular or Diagonal
dmperm

Dulmage-Mendelsohn Permutation / Decomposition
graph-sparseMatrix

Conversions "graph" <--> (sparse) Matrix
expm

Matrix Exponential
kronecker-methods

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

Read and write external matrix formats
indMatrix-class

Index Matrices
image-methods

Methods for image() in Package 'Matrix'
mat2triplet

Map Matrix to its Triplet Representation
number-class

Class "number" of Possibly Complex Numbers
norm

Matrix Norms
nsparseMatrix-classes

Sparse "pattern" Matrices
index-class

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

Class "lgeMatrix" of General Dense Logical Matrices
facmul

Multiplication by Decomposition Factors
ldenseMatrix-class

Virtual Class "ldenseMatrix" of Dense Logical Matrices
is.null.DN

Are the Dimnames dn NULL-like ?
isSymmetric-methods

Methods for Function 'isSymmetric' in Package 'Matrix'
matrix-products

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

Symmetric Dense Logical Matrices
pMatrix-class

Permutation matrices
nMatrix-class

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

Class "ldiMatrix" of Diagonal Logical Matrices
ndenseMatrix-class

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

Triangular Dense Logical Matrices
replValue-class

Virtual Class "replValue" - Simple Class for Subassignment Values
lsparseMatrix-classes

Sparse logical matrices
rep2abI

Replicate Vectors into 'abIndex' Result
rcond

Estimate the Reciprocal Condition Number
rleDiff-class

Class "rleDiff" of rle(diff(.)) Stored Vectors
spMatrix

Sparse Matrix Constructor From Triplet
symmetricMatrix-class

Virtual Class of Symmetric Matrices in Package Matrix
sparse.model.matrix

Construct Sparse Design / Model Matrices
symmpart

Symmetric Part and Skew(symmetric) Part of a Matrix
ngeMatrix-class

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

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

Symmetric Dense Nonzero-Pattern Matrices
wrld_1deg

World 1-degree grid contiguity matrix
qr-methods

QR Decomposition -- S4 Methods and Generic
rankMatrix

Rank of a Matrix
nearPD

Nearest Positive Definite Matrix
unpack

Representation of Packed and Unpacked Dense Matrices
rsparsematrix

Random Sparse Matrix
ntrMatrix-class

Triangular Dense Logical Matrices
sparseMatrix

General Sparse Matrix Construction from Nonzero Entries
unpackedMatrix-class

Virtual Class "unpackedMatrix" of Unpacked Dense Matrices
sparseQR-class

Sparse QR decomposition of a sparse matrix
solve-methods

Methods in Package Matrix for Function solve()
sparseMatrix-class

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

Sparse LU decomposition of a square sparse matrix
Unused-classes

Virtual Classes Not Yet Really Implemented and Used
packedMatrix-class

Virtual Class "packedMatrix" of Packed Dense Matrices
updown

Up- and Down-Dating a Cholesky Decomposition
printSpMatrix

Format and Print Sparse Matrices Flexibly
sparseVector-class

Sparse Vector Classes
sparseVector

Sparse Vector Construction from Nonzero Entries
triangularMatrix-class

Virtual Class of Triangular Matrices in Package Matrix
uniqTsparse

Unique (Sorted) TsparseMatrix Representations
KNex

Koenker-Ng Example Sparse Model Matrix and Response Vector
KhatriRao

Khatri-Rao Matrix Product
Hilbert

Generate a Hilbert matrix
BunchKaufman-methods

Bunch-Kaufman Decomposition Methods
CAex

Albers' example Matrix with "Difficult" Eigen Factorization