Learn R Programming

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

Matrix (version 0.999375-20)

Sparse and Dense Matrix Classes and Methods

Description

Classes and methods for dense and sparse matrices and operations on them using Lapack and SuiteSparse.

Copy Link

Version

Install

install.packages('Matrix')

Monthly Downloads

155,110

Version

0.999375-20

License

GPL (>= 2)

Maintainer

Doug

Last Published

March 11th, 2025

Functions in Matrix (0.999375-20)

ngeMatrix-class

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

Form Row and Column Sums and Means
compMatrix-class

Class "compMatrix" of Composite (Factorizable) Matrices
dtpMatrix-class

Packed triangular dense matrices
dsparseMatrix-class

Virtual Class "dsparseMatrix" of Numeric Sparse Matrices
CAex

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

Positive Semi-definite Dense Numeric Matrices
denseMatrix-class

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

Virtual Class "atomicVector" of Atomic Vectors
dtrMatrix-class

Triangular, dense, numeric matrices
expand

Expand a Decomposition into Factors
[-methods

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

Class "Schur" of Schur Matrix Factorizations
symmetricMatrix-class

Virtual Class of Symmetric Matrices in package:Matrix
symmpart

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

Versions of 'cbind' and 'rbind' recursively built on cbind2/rbind2
ldenseMatrix-class

Virtual Class "ldenseMatrix" of Dense Logical Matrices
SparseM-conversions

Sparse Matrix Coercion from and to those from package "SparseM"
printSpMatrix

Print Sparse Matrices Flexibly
KNex

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

Sparse Compressed, Row-oriented Numeric Matrices
TsparseMatrix-class

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

QR Decomposition -- S4 Methods and Generic
dgTMatrix-class

Sparse matrices in triplet form
index-class

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

Construct a Block Diagonal Matrix
Matrix

Construct a Classed Matrix
Cholesky-class

Cholesky and Bunch-Kaufman Decompositions
MatrixFactorization-class

Class "MatrixFactorization" of Matrix Factorizations
Diagonal

Create Diagonal Matrix Object
image-methods

Methods for image() in Package 'Matrix'
expm

Matrix Exponential
ltrMatrix-class

Triangular Dense Logical Matrices
dsCMatrix-class

Numeric Symmetric Sparse (column compressed) Matrices
lgeMatrix-class

Class "lgeMatrix" of General Dense Logical Matrices
facmul

Multiplication by Decomposition Factors
nsparseMatrix-classes

Sparse "pattern" Matrices
is.na-methods

is.na() Methods for 'Matrix' Objects
[<--methods

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

Sparse Matrix Constructor From Triplet
norm

Matrix Norms
triangularMatrix-class

Virtual Class of Triangular Matrices in package:Matrix
CsparseMatrix-class

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

Class "ldiMatrix" of Diagonal Logical Matrices
sparseVector-class

Sparse Vector Classes
sparseQR-class

Sparse QR decomposition of a sparse matrix
tcrossprod

Cross-product of transpose
generalMatrix-class

Class "generalMatrix" of General Matrices
nearPD

Nearest Matrix to a Positive Definite Matrix
all.equal-methods

Matrix Methods for Function all.equal()
Schur

Schur Decomposition of a Matrix
USCounties

USCounties Contiguity Matrix
ntrMatrix-class

Triangular Dense Logical Matrices
dsyMatrix-class

Symmetric Dense Numeric Matrices
Unused-classes

Virtual Classes Not Yet Really Implemented and Used
dMatrix-class

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

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

Bunch-Kaufman Decomposition Methods
kronecker-methods

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

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

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

Drop "Explicit Zeroes" from a Sparse Matrix
lsparseMatrix-classes

Sparse logical matrices
unpack

Full Storage Representation of Packed Matrices
ddiMatrix-class

Class "ddiMatrix" of Diagonal Numeric Matrices
RsparseMatrix-class

Class "RsparseMatrix" of Sparse Matrices in Column-compressed Form
dgCMatrix-class

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

LU (dense) Matrix Decompositions
dsRMatrix-class

Symmetric Sparse Compressed Row Matrices
rcond

Estimate the Reciprocal Condition Number
dgeMatrix-class

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

Triangular Decomposition of a Square Matrix
lsyMatrix-class

Symmetric Dense Logical Matrices
number-class

Class "number" of Possibly Complex Numbers
forceSymmetric

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

Permutation matrices
replValue-class

Virtual Class "replValue" - Simple Class for subassignment Values
sparseLU-class

Sparse LU decomposition of a square sparse matrix
sparseMatrix

General Sparse Matrix Construction from Nonzero Entries
band

Extract bands of a matrix
SPQR-class

Class "SPQR" of SuiteSparse QR multifrontal sparse QR Decompositions
ndenseMatrix-class

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

Symmetric Dense Nonzero-Pattern Matrices
externalFormats

Read and write external matrix formats
Cholesky

Cholesky Decomposition of a Sparse Matrix
chol

Choleski Decomposition - 'Matrix' S4 Generic
diagonalMatrix-class

Class "diagonalMatrix" of Diagonal Matrices
dtCMatrix-class

Triangular, (compressed) sparse column matrices
xtabs

Cross Tabulation, Optionally Sparse
Matrix-class

Virtual Class "Matrix" Class of Matrices
Hilbert

Generate a Hilbert matrix
CHMfactor-class

CHOLMOD-based Cholesky Factorizations
nMatrix-class

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

Methods for Function isSymmetric in Package 'Matrix'
spqr

SuiteSparse QR factorization of Sparse Matrix
nnzero

The Number of Non-Zero Values of a Matrix