Learn R Programming

Matrix (version 1.7-2)

Sparse and Dense Matrix Classes and Methods

Description

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

81,278

Version

1.7-2

License

GPL (>= 2) | file LICENCE

Maintainer

Martin Maechler

Last Published

January 23rd, 2025

Functions in Matrix (1.7-2)

CsparseMatrix-class

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

Dense Bunch-Kaufman Factorizations
BunchKaufman-methods

Methods for Bunch-Kaufman Factorization
Diagonal

Construct a Diagonal Matrix
Matrix-notyet

Virtual Classes Not Yet Really Implemented and Used
MatrixClass

The Matrix (Super-) Class of a Class
Matrix

Construct a Classed Matrix
colSums-methods

Form Row and Column Sums and Means
USCounties

Contiguity Matrix of U.S. Counties
MatrixFactorization-class

Virtual Class "MatrixFactorization" of Matrix Factorizations
Cholesky-class

Dense Cholesky Factorizations
Cholesky-methods

Methods for Cholesky Factorization
condest

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

Class "abIndex" of Abstract Index Vectors
KhatriRao

Khatri-Rao Matrix Product
Hilbert

Generate a Hilbert matrix
Matrix-class

Virtual Class "Matrix" of Matrices
denseMatrix-class

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

Compressed, sparse, column-oriented numeric matrices
KNex

Koenker-Ng Example Sparse Model Matrix and Response Vector
boolmatmult-methods

Boolean Arithmetic Matrix Products: %&% and Methods
cbind2-methods

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

Sequence Generation of "abIndex", Abstract Index Vectors
drop0

Drop Non-Structural Zeros from a Sparse Matrix
CAex

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

Class "RsparseMatrix" of Sparse Matrices in Row-compressed Form
all.equal-methods

Matrix Package Methods for Function all.equal()
Schur-class

Schur Factorizations
bandSparse

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

Construct a Block Diagonal Matrix
chol-methods

Compute the Cholesky Factor of a Matrix
chol2inv-methods

Inverse from Cholesky Factor
dgRMatrix-class

Sparse Compressed, Row-oriented Numeric Matrices
dsCMatrix-class

Numeric Symmetric Sparse (column compressed) Matrices
dMatrix-class

(Virtual) Class "dMatrix" of "double" Matrices
Schur-methods

Methods for Schur Factorization
TsparseMatrix-class

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

Sparse Cholesky Factorizations
ddiMatrix-class

Class "ddiMatrix" of Diagonal Numeric Matrices
Matrix-defunct

Defunct Functions in Package Matrix
Matrix-deprecated

Deprecated Functions in Package Matrix
asUniqueT

Standardize a Sparse Matrix in Triplet Format
denseLU-class

Dense LU Factorizations
ddenseMatrix-class

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

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

Class "diagonalMatrix" of Diagonal Matrices
diagU2N

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

Sparse matrices in triplet form
dsRMatrix-class

Symmetric Sparse Compressed Row Matrices
band-methods

Extract bands of a matrix
dtRMatrix-class

Triangular Sparse Compressed Row Matrices
facmul-methods

Multiplication by Factors from Matrix Factorizations
dimScale

Scale the Rows and Columns of a Matrix
dsparseMatrix-class

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

Triangular, dense, numeric matrices
fastMisc

“Low Level” Coercions and Methods
coerce-methods-SparseM

Sparse Matrix Coercion from and to those from package SparseM
expand-methods

Expand Matrix Factorizations
expm-methods

Matrix Exponential
lgeMatrix-class

Class "lgeMatrix" of General Dense Logical Matrices
coerce-methods-graph

Conversions "graph" <--> (sparse) Matrix
dtpMatrix-class

Packed Triangular Dense Matrices - "dtpMatrix"
lsparseMatrix-class

Sparse logical matrices
ldenseMatrix-class

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

Class "ldiMatrix" of Diagonal Logical Matrices
forceSymmetric-methods

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

Symmetric Dense (Packed or Unpacked) Numeric Matrices
externalFormats

Read and write external matrix formats
formatSparseM

Formatting Sparse Numeric Matrices Utilities
indMatrix-class

Index Matrices
dtCMatrix-class

Triangular, (compressed) sparse column matrices
generalMatrix-class

Class "generalMatrix" of General Matrices
image-methods

Methods for image() in Package 'Matrix'
is.null.DN

Are the Dimnames dn NULL-like ?
isTriangular-methods

Test whether a Matrix is Triangular or Diagonal
dmperm

Dulmage-Mendelsohn Permutation / Decomposition
dpoMatrix-class

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

Virtual Class “index” of Index Vectors
lu-methods

Methods for LU Factorization
invertPerm

Utilities for Permutation Vectors
nsyMatrix-class

Symmetric Dense Nonzero-Pattern Matrices
ntrMatrix-class

Triangular Dense Logical Matrices
is.na-methods

is.na(), is.finite() Methods for 'Matrix' Objects
isSymmetric-methods

Methods for Function 'isSymmetric' in Package 'Matrix'
qr-methods

Methods for QR Factorization
lsyMatrix-class

Symmetric Dense Logical Matrices
ndenseMatrix-class

Virtual Class "ndenseMatrix" of Dense Logical Matrices
mat2triplet

Map Matrix to its Triplet Representation
kronecker-methods

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

Rank of a Matrix
nearPD

Nearest Positive Definite Matrix
ltrMatrix-class

Triangular Dense Logical Matrices
pMatrix-class

Permutation matrices
sparseQR-class

Sparse QR Factorizations
matmult-methods

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

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

Random Sparse Matrix
nMatrix-class

Class "nMatrix" of Non-zero Pattern Matrices
pack-methods

Representation of Packed and Unpacked Dense Matrices
packedMatrix-class

Virtual Class "packedMatrix" of Packed Dense Matrices
printSpMatrix

Format and Print Sparse Matrices Flexibly
rcond-methods

Estimate the Reciprocal Condition Number
norm-methods

Matrix Norms
sparseMatrix-class

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

Replicate Vectors into 'abIndex' Result
symmpart-methods

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

Virtual Class of Triangular Matrices in Package Matrix
unpackedMatrix-class

Virtual Class "unpackedMatrix" of Unpacked Dense Matrices
sparseMatrix

General Sparse Matrix Construction from Nonzero Entries
nsparseMatrix-class

Sparse "pattern" Matrices
solve-methods

Methods in Package Matrix for Function solve
sparseVector-class

Sparse Vector Classes
updown-methods

Updating and Downdating Sparse Cholesky Factorizations
spMatrix

Sparse Matrix Constructor From Triplet
sparseVector

Sparse Vector Construction from Nonzero Entries
ngeMatrix-class

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

The Number of Non-Zero Values of a Matrix
sparse.model.matrix

Construct Sparse Design / Model Matrices
subassign-methods

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

Sparse LU Factorizations
subscript-methods

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

Virtual Class of Symmetric Matrices in Package Matrix
wrld_1deg

Contiguity Matrix of World One-Degree Grid Cells