Learn R Programming

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

Matrix (version 1.6-3)

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

108,657

Version

1.6-3

License

GPL (>= 2) | file LICENCE

Maintainer

Martin Maechler

Last Published

November 14th, 2023

Functions in Matrix (1.6-3)

CAex

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

Sparse Cholesky Factorizations
CsparseMatrix-class

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

Dense Bunch-Kaufman Factorizations
RsparseMatrix-class

Class "RsparseMatrix" of Sparse Matrices in Row-compressed Form
Hilbert

Generate a Hilbert matrix
BunchKaufman-methods

Methods for Bunch-Kaufman Factorization
KNex

Koenker-Ng Example Sparse Model Matrix and Response Vector
USCounties

Contiguity Matrix of U.S. Counties
Diagonal

Construct a Diagonal Matrix
Schur-class

Schur Factorizations
Subassign-methods

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

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

Class "TsparseMatrix" of Sparse Matrices in Triplet Form
KhatriRao

Khatri-Rao Matrix Product
cbind2-methods

'cbind()' and 'rbind()' recursively built on cbind2/rbind2
denseLU-class

Dense LU Factorizations
chol-methods

Compute the Cholesky Factor of a Matrix
Matrix-deprecated

Deprecated Functions in Package Matrix
Matrix

Construct a Classed Matrix
Matrix-class

Virtual Class "Matrix" of Matrices
Matrix-defunct

Defunct Functions in Package Matrix
dgCMatrix-class

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

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

Virtual Class "ddenseMatrix" of Numeric Dense Matrices
all.equal-methods

Matrix Package Methods for Function all.equal()
bdiag

Construct a Block Diagonal Matrix
dgRMatrix-class

Sparse Compressed, Row-oriented Numeric Matrices
dpoMatrix-class

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

Virtual Class "atomicVector" of Atomic Vectors
boolmatmult-methods

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

Methods for Schur Factorization
dgTMatrix-class

Sparse matrices in triplet form
compMatrix-class

Class "compMatrix" of Composite (Factorizable) Matrices
coerce-methods-SparseM

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

Extract bands of a matrix
condest

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

Drop Non-Structural Zeros from a Sparse Matrix
expand-methods

Expand Matrix Factorizations
bandSparse

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

Matrix Exponential
dgeMatrix-class

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

Scale the Rows and Columns of a Matrix
Cholesky-class

Dense Cholesky Factorizations
dmperm

Dulmage-Mendelsohn Permutation / Decomposition
ddiMatrix-class

Class "ddiMatrix" of Diagonal Numeric Matrices
indMatrix-class

Index Matrices
index-class

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

Packed Triangular Dense Matrices - "dtpMatrix"
Cholesky-methods

Methods for Cholesky Factorization
MatrixClass

The Matrix (Super-) Class of a Class
coerce-methods-graph

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

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

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

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

Virtual Class "MatrixFactorization" of Matrix Factorizations
lsparseMatrix-classes

Sparse logical matrices
dsCMatrix-class

Numeric Symmetric Sparse (column compressed) Matrices
abIndex-class

Class "abIndex" of Abstract Index Vectors
ngeMatrix-class

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

The Number of Non-Zero Values of a Matrix
abIseq

Sequence Generation of "abIndex", Abstract Index Vectors
dtrMatrix-class

Triangular, dense, numeric matrices
invertPerm

Utilities for Permutation Vectors
is.na-methods

is.na(), is.finite() Methods for 'Matrix' Objects
dsRMatrix-class

Symmetric Sparse Compressed Row Matrices
rcond-methods

Estimate the Reciprocal Condition Number
lu-methods

Methods for LU Factorization
mat2triplet

Map Matrix to its Triplet Representation
dsparseMatrix-class

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

Virtual Class "ldenseMatrix" of Dense Logical Matrices
chol2inv-methods

Inverse from Cholesky Factor
rep2abI

Replicate Vectors into 'abIndex' Result
spMatrix

Sparse Matrix Constructor From Triplet
colSums-methods

Form Row and Column Sums and Means
diagU2N

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

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

Class "ldiMatrix" of Diagonal Logical Matrices
sparse.model.matrix

Construct Sparse Design / Model Matrices
diagonalMatrix-class

Class "diagonalMatrix" of Diagonal Matrices
dsyMatrix-class

Symmetric Dense (Packed or Unpacked) Numeric Matrices
externalFormats

Read and write external matrix formats
fastMisc

“Low Level” Coercions and Methods
nearPD

Nearest Positive Definite Matrix
forceSymmetric-methods

Force a Matrix to 'symmetricMatrix' Without Symmetry Checks
rsparsematrix

Random Sparse Matrix
solve-methods

Methods in Package Matrix for Function solve
packedMatrix-class

Virtual Class "packedMatrix" of Packed Dense Matrices
nsyMatrix-class

Symmetric Dense Nonzero-Pattern Matrices
printSpMatrix

Format and Print Sparse Matrices Flexibly
dtCMatrix-class

Triangular, (compressed) sparse column matrices
facmul-methods

Multiplication by Factors from Matrix Factorizations
sparseMatrix

General Sparse Matrix Construction from Nonzero Entries
dtRMatrix-class

Triangular Sparse Compressed Row Matrices
formatSparseM

Formatting Sparse Numeric Matrices Utilities
isTriangular-methods

Test whether a Matrix is Triangular or Diagonal
wrld_1deg

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

Sparse QR Factorizations
generalMatrix-class

Class "generalMatrix" of General Matrices
kronecker-methods

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

Matrix (Cross) Products (of Transpose)
pack

Representation of Packed and Unpacked Dense Matrices
nMatrix-class

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

Virtual Class "unpackedMatrix" of Unpacked Dense Matrices
is.null.DN

Are the Dimnames dn NULL-like ?
norm-methods

Matrix Norms
ntrMatrix-class

Triangular Dense Logical Matrices
sparseVector-class

Sparse Vector Classes
sparseVector

Sparse Vector Construction from Nonzero Entries
nsparseMatrix-classes

Sparse "pattern" Matrices
replValue-class

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

Class "rleDiff" of rle(diff(.)) Stored Vectors
isSymmetric-methods

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

Symmetric Dense Logical Matrices
sparseLU-class

Sparse LU Factorizations
ltrMatrix-class

Triangular Dense Logical Matrices
sparseMatrix-class

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

Class "number" of Possibly Complex Numbers
Matrix-notyet

Virtual Classes Not Yet Really Implemented and Used
updown-methods

Updating and Downdating Sparse Cholesky Factorizations
pMatrix-class

Permutation matrices
qr-methods

Methods for QR Factorization
rankMatrix

Rank of a Matrix
symmetricMatrix-class

Virtual Class of Symmetric Matrices in Package Matrix
symmpart-methods

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

Virtual Class of Triangular Matrices in Package Matrix
asUniqueT

Standardize a Sparse Matrix in Triplet Format