50% off: Unlimited data and AI learning.
State of Data and AI Literacy Report 2025

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

Matrix (version 1.5-0)

Sparse and Dense Matrix Classes and Methods

Description

A rich hierarchy of matrix classes, including triangular, symmetric, and diagonal matrices, both dense and sparse and with pattern, logical and numeric entries. Numerous methods for and operations on these matrices, using 'LAPACK' and 'SuiteSparse' libraries.

Copy Link

Version

Install

install.packages('Matrix')

Monthly Downloads

74,588

Version

1.5-0

License

GPL (>= 2) | file LICENCE

Maintainer

Last Published

September 10th, 2022

Functions in Matrix (1.5-0)

Schur-class

Class "Schur" of Schur Matrix Factorizations
Schur

Schur Decomposition of a Matrix
diagU2N

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

Class "diagonalMatrix" of Diagonal Matrices
dsyMatrix-class

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

CHOLMOD-based Cholesky Factorizations
dtCMatrix-class

Triangular, (compressed) sparse column matrices
BunchKaufman-methods

Bunch-Kaufman Decomposition Methods
CAex

Albers' example Matrix with "Difficult" Eigen Factorization
KNex

Koenker-Ng Example Sparse Model Matrix and Response Vector
KhatriRao

Khatri-Rao Matrix Product
SparseM-conversions

Sparse Matrix Coercion from and to those from package SparseM
expm

Matrix Exponential
[<--methods

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

Cholesky and Bunch-Kaufman Decompositions
LU-class

LU (dense) Matrix Decompositions
externalFormats

Read and write external matrix formats
Cholesky

Cholesky Decomposition of a Sparse Matrix
lgeMatrix-class

Class "lgeMatrix" of General Dense Logical Matrices
all.equal-methods

Matrix Package Methods for Function all.equal()
CsparseMatrix-class

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

Virtual Class "Matrix" Class of Matrices
MatrixFactorization-class

Class "MatrixFactorization" of Matrix Factorizations
atomicVector-class

Virtual Class "atomicVector" of Atomic Vectors
abIseq

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

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

Sparse logical matrices
matrix-products

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

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

Class "abIndex" of Abstract Index Vectors
all-methods

"Matrix" Methods for Functions all() and any()
norm

Matrix Norms
RsparseMatrix-class

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

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

(Virtual) Class "dMatrix" of "double" Matrices
USCounties

USCounties Contiguity Matrix
Diagonal

Create Diagonal Matrix Object
ddenseMatrix-class

Virtual Class "ddenseMatrix" of Numeric Dense Matrices
cBind

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

Generate a Hilbert matrix
bdiag

Construct a Block Diagonal Matrix
compMatrix-class

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

Sparse "pattern" Matrices
rsparsematrix

Random Sparse Matrix
condest

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

Construct a Classed Matrix
MatrixClass

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

Triangular, dense, numeric matrices
chol

The Cholesky Decomposition - 'Matrix' S4 Generic and Methods
ddiMatrix-class

Class "ddiMatrix" of Diagonal Numeric Matrices
solve-methods

Methods in Package Matrix for Function solve()
expand

Expand a (Matrix) Decomposition into Factors
%&%-methods

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

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

Sparse matrices in triplet form
graph-sparseMatrix

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

Dulmage-Mendelsohn Permutation / Decomposition
dgeMatrix-class

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

Extract bands of a matrix
dtRMatrix-class

Triangular Sparse Compressed Row Matrices
image-methods

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

Virtual Class of Symmetric Matrices in Package Matrix
drop0

Drop "Explicit Zeroes" from a Sparse Matrix
dtpMatrix-class

Packed Triangular Dense Matrices - "dtpMatrix"
dsCMatrix-class

Numeric Symmetric Sparse (column compressed) Matrices
ldenseMatrix-class

Virtual Class "ldenseMatrix" of Dense Logical Matrices
formatSparseM

Formatting Sparse Numeric Matrices Utilities
symmpart

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

Multiplication by Decomposition Factors
ldiMatrix-class

Class "ldiMatrix" of Diagonal Logical Matrices
bandSparse

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

Inverse from Choleski or QR Decomposition -- Matrix Methods
colSums

Form Row and Column Sums and Means
generalMatrix-class

Class "generalMatrix" of General Matrices
lsyMatrix-class

Symmetric Dense Logical Matrices
dpoMatrix-class

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

Index Matrices
index-class

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

Class "number" of Possibly Complex Numbers
pMatrix-class

Permutation matrices
forceSymmetric

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

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

Sparse Compressed, Row-oriented Numeric Matrices
invPerm

Inverse Permutation Vector
isTriangular

Test whether a Matrix is Triangular or Diagonal
kronecker-methods

Methods for Function 'kronecker()' in Package 'Matrix'
is.na-methods

is.na(), is.infinite() Methods for 'Matrix' Objects
ndenseMatrix-class

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

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

Symmetric Sparse Compressed Row Matrices
lu

(Generalized) Triangular Decomposition of a Matrix
rleDiff-class

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

Triangular Dense Logical Matrices
sparseVector-class

Sparse Vector Classes
mat2triplet

Map Matrix to its Triplet Representation
nsyMatrix-class

Symmetric Dense Nonzero-Pattern Matrices
nearPD

Nearest Positive Definite Matrix
ntrMatrix-class

Triangular Dense Logical Matrices
sparseVector

Sparse Vector Construction from Nonzero Entries
packedMatrix-class

Virtual Class "packedMatrix" of Packed Dense Matrices
printSpMatrix

Format and Print Sparse Matrices Flexibly
rcond

Estimate the Reciprocal Condition Number
dsparseMatrix-class

Virtual Class "dsparseMatrix" of Numeric Sparse Matrices
is.null.DN

Are the Dimnames dn NULL-like ?
isSymmetric-methods

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

QR Decomposition -- S4 Methods and Generic
rankMatrix

Rank of a Matrix
rep2abI

Replicate Vectors into 'abIndex' Result
ngeMatrix-class

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

Sparse Matrix Constructor From Triplet
sparse.model.matrix

Construct Sparse Design / Model Matrices
triangularMatrix-class

Virtual Class of Triangular Matrices in Package Matrix
uniqTsparse

Unique (Sorted) TsparseMatrix Representations
nnzero

The Number of Non-Zero Values of a Matrix
unpack

Representation of Packed and Unpacked Dense Matrices
sparseLU-class

Sparse LU decomposition of a square sparse matrix
sparseMatrix-class

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

General Sparse Matrix Construction from Nonzero Entries
sparseQR-class

Sparse QR decomposition of a sparse matrix
Unused-classes

Virtual Classes Not Yet Really Implemented and Used
unpackedMatrix-class

Virtual Class "unpackedMatrix" of Unpacked Dense Matrices
updown

Up- and Down-Dating a Cholesky Decomposition
wrld_1deg

World 1-degree grid contiguity matrix