Learn R Programming

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

Matrix (version 1.6-5)

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

License

GPL (>= 2) | file LICENCE

Maintainer

Martin Maechler

Last Published

January 11th, 2024

Functions in Matrix (1.6-5)

MatrixClass

The Matrix (Super-) Class of a Class
Matrix-deprecated

Deprecated Functions in Package Matrix
Matrix-class

Virtual Class "Matrix" of Matrices
Matrix-defunct

Defunct Functions in Package Matrix
RsparseMatrix-class

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

Schur Factorizations
MatrixFactorization-class

Virtual Class "MatrixFactorization" of Matrix Factorizations
abIndex-class

Class "abIndex" of Abstract Index Vectors
abIseq

Sequence Generation of "abIndex", Abstract Index Vectors
USCounties

Contiguity Matrix of U.S. Counties
Subscript-methods

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

Khatri-Rao Matrix Product
denseLU-class

Dense LU Factorizations
condest

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

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

Methods for Schur Factorization
compMatrix-class

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

Inverse from Cholesky Factor
dgRMatrix-class

Sparse Compressed, Row-oriented Numeric Matrices
colSums-methods

Form Row and Column Sums and Means
dgCMatrix-class

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

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

Sparse matrices in triplet form
Subassign-methods

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

Construct a Classed Matrix
dMatrix-class

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

Extract bands of a matrix
ddenseMatrix-class

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

Matrix Package Methods for Function all.equal()
dimScale

Scale the Rows and Columns of a Matrix
atomicVector-class

Virtual Class "atomicVector" of Atomic Vectors
dtCMatrix-class

Triangular, (compressed) sparse column matrices
TsparseMatrix-class

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

Numeric Symmetric Sparse (column compressed) Matrices
dsRMatrix-class

Symmetric Sparse Compressed Row Matrices
externalFormats

Read and write external matrix formats
facmul-methods

Multiplication by Factors from Matrix Factorizations
coerce-methods-graph

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

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

Methods for image() in Package 'Matrix'
cbind2-methods

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

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

Compute the Cholesky Factor of a Matrix
bdiag

Construct a Block Diagonal Matrix
dtRMatrix-class

Triangular Sparse Compressed Row Matrices
ddiMatrix-class

Class "ddiMatrix" of Diagonal Numeric Matrices
denseMatrix-class

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

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

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

Expand Matrix Factorizations
dmperm

Dulmage-Mendelsohn Permutation / Decomposition
expm-methods

Matrix Exponential
kronecker-methods

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

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

Class "diagonalMatrix" of Diagonal Matrices
matmult-methods

Matrix (Cross) Products (of Transpose)
fastMisc

“Low Level” Coercions and Methods
drop0

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

Symmetric Dense (Packed or Unpacked) Numeric Matrices
ngeMatrix-class

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

Formatting Sparse Numeric Matrices Utilities
dtpMatrix-class

Packed Triangular Dense Matrices - "dtpMatrix"
nMatrix-class

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

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

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

Class "generalMatrix" of General Matrices
invertPerm

Utilities for Permutation Vectors
nsyMatrix-class

Symmetric Dense Nonzero-Pattern Matrices
dtrMatrix-class

Triangular, dense, numeric matrices
is.null.DN

Are the Dimnames dn NULL-like ?
indMatrix-class

Index Matrices
isTriangular-methods

Test whether a Matrix is Triangular or Diagonal
isSymmetric-methods

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

Class "lgeMatrix" of General Dense Logical Matrices
rep2abI

Replicate Vectors into 'abIndex' Result
ldenseMatrix-class

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

Virtual Class "index" - Simple Class for Matrix Indices
pack

Representation of Packed and Unpacked Dense Matrices
ldiMatrix-class

Class "ldiMatrix" of Diagonal Logical Matrices
is.na-methods

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

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

Symmetric Dense Logical Matrices
packedMatrix-class

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

Virtual Class "unpackedMatrix" of Unpacked Dense Matrices
lu-methods

Methods for LU Factorization
lsparseMatrix-classes

Sparse logical matrices
ltrMatrix-class

Triangular Dense Logical Matrices
ndenseMatrix-class

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

Class "number" of Possibly Complex Numbers
printSpMatrix

Format and Print Sparse Matrices Flexibly
pMatrix-class

Permutation matrices
rcond-methods

Estimate the Reciprocal Condition Number
sparseVector-class

Sparse Vector Classes
nearPD

Nearest Positive Definite Matrix
qr-methods

Methods for QR Factorization
sparseVector

Sparse Vector Construction from Nonzero Entries
rankMatrix

Rank of a Matrix
rleDiff-class

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

Sparse LU Factorizations
mat2triplet

Map Matrix to its Triplet Representation
triangularMatrix-class

Virtual Class of Triangular Matrices in Package Matrix
norm-methods

Matrix Norms
asUniqueT

Standardize a Sparse Matrix in Triplet Format
nsparseMatrix-classes

Sparse "pattern" Matrices
symmpart-methods

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

Triangular Dense Logical Matrices
sparseMatrix-class

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

Virtual Class of Symmetric Matrices in Package Matrix
spMatrix

Sparse Matrix Constructor From Triplet
sparse.model.matrix

Construct Sparse Design / Model Matrices
Matrix-notyet

Virtual Classes Not Yet Really Implemented and Used
rsparsematrix

Random Sparse Matrix
solve-methods

Methods in Package Matrix for Function solve
sparseMatrix

General Sparse Matrix Construction from Nonzero Entries
updown-methods

Updating and Downdating Sparse Cholesky Factorizations
sparseQR-class

Sparse QR Factorizations
wrld_1deg

Contiguity Matrix of World One-Degree Grid Cells
CAex

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

Methods for Bunch-Kaufman Factorization
Cholesky-class

Dense Cholesky Factorizations
Diagonal

Construct a Diagonal Matrix
KNex

Koenker-Ng Example Sparse Model Matrix and Response Vector
Hilbert

Generate a Hilbert matrix
CHMfactor-class

Sparse Cholesky Factorizations
CsparseMatrix-class

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

Dense Bunch-Kaufman Factorizations
Cholesky-methods

Methods for Cholesky Factorization