Learn R Programming

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

Matrix (version 1.6-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

74,588

Version

1.6-1

License

GPL (>= 2) | file LICENCE

Maintainer

Martin Maechler

Last Published

August 14th, 2023

Functions in Matrix (1.6-1)

CsparseMatrix-class

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

Construct a Diagonal Matrix
Matrix-deprecated

Deprecated Functions in Package Matrix
Matrix-class

Virtual Class "Matrix" of Matrices
CAex

Albers' example Matrix with "Difficult" Eigen Factorization
Matrix

Construct a Classed Matrix
USCounties

Contiguity Matrix of U.S. Counties
Matrix-defunct

Defunct Functions in Package Matrix
Subassign-methods

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

Class "TsparseMatrix" of Sparse Matrices in Triplet Form
bandSparse

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

Sparse Cholesky Factorizations
Hilbert

Generate a Hilbert matrix
bdiag

Construct a Block Diagonal Matrix
Subscript-methods

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

Compute the Cholesky Factor of a Matrix
Cholesky-class

Dense Cholesky Factorizations
drop0

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

Inverse from Cholesky Factor
KNex

Koenker-Ng Example Sparse Model Matrix and Response Vector
MatrixClass

The Matrix (Super-) Class of a Class
dgeMatrix-class

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

Khatri-Rao Matrix Product
MatrixFactorization-class

Virtual Class "MatrixFactorization" of Matrix Factorizations
dgRMatrix-class

Sparse Compressed, Row-oriented Numeric Matrices
Cholesky-methods

Methods for Cholesky Factorization
dgTMatrix-class

Sparse matrices in triplet form
abIndex-class

Class "abIndex" of Abstract Index Vectors
diagU2N

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

Class "diagonalMatrix" of Diagonal Matrices
abIseq

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

Numeric Symmetric Sparse (column compressed) Matrices
expm-methods

Matrix Exponential
boolmatmult-methods

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

Triangular Sparse Compressed Row Matrices
dimScale

Scale the Rows and Columns of a Matrix
generalMatrix-class

Class "generalMatrix" of General Matrices
BunchKaufman-class

Dense Bunch-Kaufman Factorizations
coerce-methods-graph

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

Methods for Bunch-Kaufman Factorization
externalFormats

Read and write external matrix formats
kronecker-methods

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

Packed Triangular Dense Matrices - "dtpMatrix"
is.na-methods

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

Are the Dimnames dn NULL-like ?
ldiMatrix-class

Class "ldiMatrix" of Diagonal Logical Matrices
denseLU-class

Dense LU Factorizations
isSymmetric-methods

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

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

Methods for Schur Factorization
cbind2-methods

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

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

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

Sparse Matrix Coercion from and to those from package SparseM
nsparseMatrix-classes

Sparse "pattern" Matrices
nsyMatrix-class

Symmetric Dense Nonzero-Pattern Matrices
Schur-class

Schur Factorizations
atomicVector-class

Virtual Class "atomicVector" of Atomic Vectors
dgCMatrix-class

Compressed, sparse, column-oriented numeric matrices
band-methods

Extract bands of a matrix
ldenseMatrix-class

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

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

Virtual Class "ndenseMatrix" of Dense Logical Matrices
rankMatrix

Rank of a Matrix
ddenseMatrix-class

Virtual Class "ddenseMatrix" of Numeric Dense Matrices
rcond-methods

Estimate the Reciprocal Condition Number
sparse.model.matrix

Construct Sparse Design / Model Matrices
dsyMatrix-class

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

Triangular, (compressed) sparse column matrices
forceSymmetric-methods

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

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

Class "ddiMatrix" of Diagonal Numeric Matrices
formatSparseM

Formatting Sparse Numeric Matrices Utilities
all-methods

"Matrix" Methods for Functions all() and any()
all.equal-methods

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

Form Row and Column Sums and Means
sparseLU-class

Sparse LU Factorizations
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
facmul-methods

Multiplication by Factors from Matrix Factorizations
compMatrix-class

Class "compMatrix" of Composite (Factorizable) Matrices
lsparseMatrix-classes

Sparse logical matrices
image-methods

Methods for image() in Package 'Matrix'
fastMisc

“Low Level” Coercions and Methods
lsyMatrix-class

Symmetric Dense Logical Matrices
nearPD

Nearest Positive Definite Matrix
ngeMatrix-class

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

Permutation matrices
sparseMatrix

General Sparse Matrix Construction from Nonzero Entries
condest

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

Map Matrix to its Triplet Representation
matmult-methods

Matrix (Cross) Products (of Transpose)
rep2abI

Replicate Vectors into 'abIndex' Result
dMatrix-class

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

Index Matrices
replValue-class

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

Triangular Dense Logical Matrices
packedMatrix-class

Virtual Class "packedMatrix" of Packed Dense Matrices
updown-methods

Updating and Downdating Sparse Cholesky Factorizations
solve-methods

Methods in Package Matrix for Function solve
wrld_1deg

Contiguity Matrix of World One-Degree Grid Cells
spMatrix

Sparse Matrix Constructor From Triplet
symmpart-methods

Symmetric Part and Skew(symmetric) Part of a Matrix
lu-methods

Methods for LU Factorization
unpackedMatrix-class

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

Triangular Dense Logical Matrices
Matrix-notyet

Virtual Classes Not Yet Really Implemented and Used
triangularMatrix-class

Virtual Class of Triangular Matrices in Package Matrix
dsRMatrix-class

Symmetric Sparse Compressed Row Matrices
number-class

Class "number" of Possibly Complex Numbers
printSpMatrix

Format and Print Sparse Matrices Flexibly
qr-methods

Methods for QR Factorization
sparseVector

Sparse Vector Construction from Nonzero Entries
symmetricMatrix-class

Virtual Class of Symmetric Matrices in Package Matrix
dsparseMatrix-class

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

Triangular, dense, numeric matrices
expand-methods

Expand Matrix Factorizations
index-class

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

Utilities for Permutation Vectors
nnzero-methods

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

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

Sparse QR Factorizations
norm-methods

Matrix Norms
rsparsematrix

Random Sparse Matrix
pack

Representation of Packed and Unpacked Dense Matrices
uniqTsparse

Unique (Sorted) TsparseMatrix Representations
sparseVector-class

Sparse Vector Classes