Learn R Programming

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

Matrix (version 1.6-4)

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

118,373

Version

1.6-4

License

GPL (>= 2) | file LICENCE

Maintainer

Martin Maechler

Last Published

November 30th, 2023

Functions in Matrix (1.6-4)

denseLU-class

Dense LU Factorizations
RsparseMatrix-class

Class "RsparseMatrix" of Sparse Matrices in Row-compressed Form
Matrix-deprecated

Deprecated Functions in Package Matrix
MatrixClass

The Matrix (Super-) Class of a Class
KhatriRao

Khatri-Rao Matrix Product
MatrixFactorization-class

Virtual Class "MatrixFactorization" of Matrix Factorizations
Matrix-class

Virtual Class "Matrix" of Matrices
USCounties

Contiguity Matrix of U.S. Counties
Matrix

Construct a Classed Matrix
Schur-methods

Methods for Schur Factorization
Subscript-methods

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

Defunct Functions in Package Matrix
Subassign-methods

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

Virtual Class "atomicVector" of Atomic Vectors
TsparseMatrix-class

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

Schur Factorizations
all.equal-methods

Matrix Package Methods for Function all.equal()
coerce-methods-SparseM

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

Class "abIndex" of Abstract Index Vectors
abIseq

Sequence Generation of "abIndex", Abstract Index Vectors
cbind2-methods

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

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

Class "compMatrix" of Composite (Factorizable) Matrices
bdiag

Construct a Block Diagonal Matrix
band-methods

Extract bands of a matrix
chol-methods

Compute the Cholesky Factor of a Matrix
chol2inv-methods

Inverse from Cholesky Factor
boolmatmult-methods

Boolean Arithmetic Matrix Products: %&% and Methods
condest

Compute Approximate CONDition number and 1-Norm of (Large) Matrices
colSums-methods

Form Row and Column Sums and Means
dgTMatrix-class

Sparse matrices in triplet form
diagU2N

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

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

Class "ddiMatrix" of Diagonal Numeric Matrices
denseMatrix-class

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

Class "diagonalMatrix" of Diagonal Matrices
dtCMatrix-class

Triangular, (compressed) sparse column matrices
dpoMatrix-class

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

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

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

Triangular Sparse Compressed Row Matrices
dsyMatrix-class

Symmetric Dense (Packed or Unpacked) Numeric Matrices
formatSparseM

Formatting Sparse Numeric Matrices Utilities
dgCMatrix-class

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

Virtual Class "ddenseMatrix" of Numeric Dense Matrices
invertPerm

Utilities for Permutation Vectors
is.na-methods

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

Scale the Rows and Columns of a Matrix
dmperm

Dulmage-Mendelsohn Permutation / Decomposition
dtpMatrix-class

Packed Triangular Dense Matrices - "dtpMatrix"
generalMatrix-class

Class "generalMatrix" of General Matrices
drop0

Drop Non-Structural Zeros from a Sparse Matrix
dgRMatrix-class

Sparse Compressed, Row-oriented Numeric Matrices
dsCMatrix-class

Numeric Symmetric Sparse (column compressed) Matrices
externalFormats

Read and write external matrix formats
facmul-methods

Multiplication by Factors from Matrix Factorizations
is.null.DN

Are the Dimnames dn NULL-like ?
mat2triplet

Map Matrix to its Triplet Representation
lu-methods

Methods for LU Factorization
indMatrix-class

Index Matrices
norm-methods

Matrix Norms
dtrMatrix-class

Triangular, dense, numeric matrices
isTriangular-methods

Test whether a Matrix is Triangular or Diagonal
index-class

Virtual Class "index" - Simple Class for Matrix Indices
expand-methods

Expand Matrix Factorizations
expm-methods

Matrix Exponential
dsRMatrix-class

Symmetric Sparse Compressed Row Matrices
ldenseMatrix-class

Virtual Class "ldenseMatrix" of Dense Logical Matrices
coerce-methods-graph

Conversions "graph" <--> (sparse) Matrix
isSymmetric-methods

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

Symmetric Dense Nonzero-Pattern Matrices
nsparseMatrix-classes

Sparse "pattern" Matrices
ldiMatrix-class

Class "ldiMatrix" of Diagonal Logical Matrices
fastMisc

“Low Level” Coercions and Methods
rcond-methods

Estimate the Reciprocal Condition Number
kronecker-methods

Methods for Function 'kronecker()' in Package 'Matrix'
image-methods

Methods for image() in Package 'Matrix'
lgeMatrix-class

Class "lgeMatrix" of General Dense Logical Matrices
packedMatrix-class

Virtual Class "packedMatrix" of Packed Dense Matrices
rep2abI

Replicate Vectors into 'abIndex' Result
printSpMatrix

Format and Print Sparse Matrices Flexibly
matmult-methods

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

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

Triangular Dense Logical Matrices
qr-methods

Methods for QR Factorization
rankMatrix

Rank of a Matrix
sparseLU-class

Sparse LU Factorizations
lsparseMatrix-classes

Sparse logical matrices
forceSymmetric-methods

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

Symmetric Dense Logical Matrices
ndenseMatrix-class

Virtual Class "ndenseMatrix" of Dense Logical Matrices
nearPD

Nearest Positive Definite Matrix
sparseMatrix-class

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

Random Sparse Matrix
number-class

Class "number" of Possibly Complex Numbers
ltrMatrix-class

Triangular Dense Logical Matrices
pMatrix-class

Permutation matrices
solve-methods

Methods in Package Matrix for Function solve
sparseMatrix

General Sparse Matrix Construction from Nonzero Entries
spMatrix

Sparse Matrix Constructor From Triplet
sparse.model.matrix

Construct Sparse Design / Model Matrices
wrld_1deg

Contiguity Matrix of World One-Degree Grid Cells
sparseQR-class

Sparse QR Factorizations
ngeMatrix-class

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

Sparse Vector Classes
sparseVector

Sparse Vector Construction from Nonzero Entries
triangularMatrix-class

Virtual Class of Triangular Matrices in Package Matrix
nnzero-methods

The Number of Non-Zero Values of a Matrix
Matrix-notyet

Virtual Classes Not Yet Really Implemented and Used
asUniqueT

Standardize a Sparse Matrix in Triplet Format
updown-methods

Updating and Downdating Sparse Cholesky Factorizations
replValue-class

Virtual Class "replValue" - Simple Class for Subassignment Values
rleDiff-class

Class "rleDiff" of rle(diff(.)) Stored Vectors
symmetricMatrix-class

Virtual Class of Symmetric Matrices in Package Matrix
symmpart-methods

Symmetric Part and Skew(symmetric) Part of a Matrix
pack

Representation of Packed and Unpacked Dense Matrices
unpackedMatrix-class

Virtual Class "unpackedMatrix" of Unpacked Dense Matrices
CAex

Albers' example Matrix with "Difficult" Eigen Factorization
KNex

Koenker-Ng Example Sparse Model Matrix and Response Vector
Hilbert

Generate a Hilbert matrix
Cholesky-class

Dense Cholesky Factorizations
BunchKaufman-methods

Methods for Bunch-Kaufman Factorization
CHMfactor-class

Sparse Cholesky Factorizations
Cholesky-methods

Methods for Cholesky Factorization
Diagonal

Construct a Diagonal Matrix
BunchKaufman-class

Dense Bunch-Kaufman Factorizations
CsparseMatrix-class

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