Learn R Programming

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

Matrix (version 1.6-1.1)

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-1.1

License

GPL (>= 2) | file LICENCE

Maintainer

Martin Maechler

Last Published

September 18th, 2023

Functions in Matrix (1.6-1.1)

Diagonal

Construct a Diagonal Matrix
KNex

Koenker-Ng Example Sparse Model Matrix and Response Vector
CsparseMatrix-class

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

Generate a Hilbert matrix
denseLU-class

Dense LU Factorizations
MatrixClass

The Matrix (Super-) Class of a Class
KhatriRao

Khatri-Rao Matrix Product
Matrix-class

Virtual Class "Matrix" of Matrices
MatrixFactorization-class

Virtual Class "MatrixFactorization" of Matrix Factorizations
Matrix-deprecated

Deprecated Functions in Package Matrix
RsparseMatrix-class

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

Construct a Classed Matrix
Schur-class

Schur Factorizations
Matrix-defunct

Defunct Functions in Package Matrix
USCounties

Contiguity Matrix of U.S. Counties
abIndex-class

Class "abIndex" of Abstract Index Vectors
TsparseMatrix-class

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

Methods for "[<-" - Assigning to Subsets for 'Matrix'
abIseq

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

Methods for Schur Factorization
Subscript-methods

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

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

Form Row and Column Sums and Means
bandSparse

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

Construct a Block Diagonal Matrix
compMatrix-class

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

"Matrix" Methods for Functions all() and any()
denseMatrix-class

Virtual Class "denseMatrix" of All Dense Matrices
condest

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

Virtual Class "atomicVector" of Atomic Vectors
band-methods

Extract bands of a matrix
dMatrix-class

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

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

Class "ddiMatrix" of Diagonal Numeric Matrices
all.equal-methods

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

Inverse from Cholesky Factor
dgCMatrix-class

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

Class "diagonalMatrix" of Diagonal Matrices
chol-methods

Compute the Cholesky Factor of a Matrix
dimScale

Scale the Rows and Columns of a Matrix
dsRMatrix-class

Symmetric Sparse Compressed Row Matrices
dmperm

Dulmage-Mendelsohn Permutation / Decomposition
dgeMatrix-class

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

Virtual Class "dsparseMatrix" of Numeric Sparse Matrices
forceSymmetric-methods

Force a Matrix to 'symmetricMatrix' Without Symmetry Checks
facmul-methods

Multiplication by Factors from Matrix Factorizations
formatSparseM

Formatting Sparse Numeric Matrices Utilities
image-methods

Methods for image() in Package 'Matrix'
fastMisc

“Low Level” Coercions and Methods
dsyMatrix-class

Symmetric Dense (Packed or Unpacked) Numeric Matrices
boolmatmult-methods

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

Sparse Compressed, Row-oriented Numeric Matrices
cbind2-methods

'cbind()' and 'rbind()' recursively built on cbind2/rbind2
kronecker-methods

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

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

Sparse matrices in triplet form
dtCMatrix-class

Triangular, (compressed) sparse column matrices
drop0

Drop Non-Structural Zeros from a Sparse Matrix
externalFormats

Read and write external matrix formats
diagU2N

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

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

Index Matrices
sparseMatrix-class

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

Triangular Sparse Compressed Row Matrices
ntrMatrix-class

Triangular Dense Logical Matrices
dpoMatrix-class

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

Matrix Exponential
sparseMatrix

General Sparse Matrix Construction from Nonzero Entries
invertPerm

Utilities for Permutation Vectors
dtpMatrix-class

Packed Triangular Dense Matrices - "dtpMatrix"
ltrMatrix-class

Triangular Dense Logical Matrices
spMatrix

Sparse Matrix Constructor From Triplet
dsCMatrix-class

Numeric Symmetric Sparse (column compressed) Matrices
isSymmetric-methods

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

Updating and Downdating Sparse Cholesky Factorizations
generalMatrix-class

Class "generalMatrix" of General Matrices
nnzero-methods

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

Sparse QR Factorizations
coerce-methods-graph

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

Map Matrix to its Triplet Representation
sparseVector-class

Sparse Vector Classes
lu-methods

Methods for LU Factorization
wrld_1deg

Contiguity Matrix of World One-Degree Grid Cells
isTriangular-methods

Test whether a Matrix is Triangular or Diagonal
ldiMatrix-class

Class "ldiMatrix" of Diagonal Logical Matrices
matmult-methods

Matrix (Cross) Products (of Transpose)
norm-methods

Matrix Norms
lsparseMatrix-classes

Sparse logical matrices
nsparseMatrix-classes

Sparse "pattern" Matrices
lgeMatrix-class

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

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

Symmetric Dense Logical Matrices
dtrMatrix-class

Triangular, dense, numeric matrices
rankMatrix

Rank of a Matrix
nMatrix-class

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

Virtual Class "ndenseMatrix" of Dense Logical Matrices
expand-methods

Expand Matrix Factorizations
is.na-methods

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

Replicate Vectors into 'abIndex' Result
nsyMatrix-class

Symmetric Dense Nonzero-Pattern Matrices
replValue-class

Virtual Class "replValue" - Simple Class for Subassignment Values
rcond-methods

Estimate the Reciprocal Condition Number
symmpart-methods

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

Permutation matrices
is.null.DN

Are the Dimnames dn NULL-like ?
Matrix-notyet

Virtual Classes Not Yet Really Implemented and Used
packedMatrix-class

Virtual Class "packedMatrix" of Packed Dense Matrices
sparse.model.matrix

Construct Sparse Design / Model Matrices
sparseLU-class

Sparse LU Factorizations
printSpMatrix

Format and Print Sparse Matrices Flexibly
number-class

Class "number" of Possibly Complex Numbers
nearPD

Nearest Positive Definite Matrix
qr-methods

Methods for QR Factorization
ngeMatrix-class

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

Sparse Vector Construction from Nonzero Entries
triangularMatrix-class

Virtual Class of Triangular Matrices in Package Matrix
symmetricMatrix-class

Virtual Class of Symmetric Matrices in Package Matrix
rsparsematrix

Random Sparse Matrix
rleDiff-class

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

Methods in Package Matrix for Function solve
uniqTsparse

Unique (Sorted) TsparseMatrix Representations
pack

Representation of Packed and Unpacked Dense Matrices
CAex

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

Dense Bunch-Kaufman Factorizations
CHMfactor-class

Sparse Cholesky Factorizations
Cholesky-class

Dense Cholesky Factorizations
Cholesky-methods

Methods for Cholesky Factorization
BunchKaufman-methods

Methods for Bunch-Kaufman Factorization