Learn R Programming

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

Matrix (version 0.999375-3)

A Matrix package for R

Description

Classes and methods for dense and sparse matrices and operations on them using Lapack, CSparse and CHOLMOD

Copy Link

Version

Install

install.packages('Matrix')

Monthly Downloads

108,657

Version

0.999375-3

License

GPL version 2 or later. This R package includes libraries CHOLMOD, AMD, COLAMD and CSparse from the University of Florida sparse matrix library maintained by Tim Davis. All sections of that code are covered by the GPL or LGPL licenses. See the directory doc/UFsparse for details.

Maintainer

Doug

Last Published

March 11th, 2025

Functions in Matrix (0.999375-3)

[-methods

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

Extract bands of a matrix
rcond

Estimate the Reciprocal Condition Number
dgeMatrix-class

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

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

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

Choleski Decomposition - 'Matrix' S4 Generic
dMatrix-class

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

Triangular Sparse Compressed Row Matrices
dtCMatrix-class

Triangular, (compressed) sparse column matrices
ndenseMatrix-class

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

Triangular Dense Logical Matrices
Schur-class

Class "Schur" of Schur Matrix Factorizations
CsparseMatrix-class

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

Construct a Classed Matrix
sparseQR-class

Sparse QR decomposition of a sparse matrix
Cholesky

Cholesky Decomposition of a Sparse Matrix
TsparseMatrix-class

Class "TsparseMatrix" of Sparse Matrices in Triplet Form
expm

Matrix exponential
colSums

Form Row and Column Sums and Means
Matrix-class

Virtual Class "Matrix" Class of Matrices
dsyMatrix-class

Symmetric Dense Numeric Matrices
lgeMatrix-class

Class "lgeMatrix" of General Dense Logical Matrices
[<--methods

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

Virtual Class "dsparseMatrix" of Numeric Sparse Matrices
nnzero

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

Packed triangular dense matrices
ltrMatrix-class

Triangular Dense Logical Matrices
image-methods

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

Sparse matrices in triplet form
Diagonal

Create Diagonal Matrix Object
lsyMatrix-class

Symmetric Dense Logical Matrices
LU-class

LU (dense) Matrix Decompositions
index-class

Virtual Class "index" - Simple Class for Matrix Indices
all-methods

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

Methods for Function isSymmetric in Package 'Matrix'
USCounties

USCounties Contiguity Matrix
pMatrix-class

Permutation matrices
contrast

Contrast Matrices, Optionally Sparse
Hilbert

Generate a Hilbert matrix
dgRMatrix-class

Sparse Compressed, Row-oriented Numeric Matrices
CHMfactor-class

CHOLMOD-based Cholesky Factorizations
bdiag

Construct a Block Diagonal Matrix
ldiMatrix-class

Class "ldiMatrix" of Diagonal Logical Matrices
Unused-classes

Virtual Classes Not Yet Used
dgCMatrix-class

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

Class "diagonalMatrix" of Diagonal Matrices
replValue-class

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

Virtual Class "atomicVector" of Atomic Vectors
facmul

Multiplication by Decomposition Factors
lsparseMatrix-classes

Sparse logical matrices
cBind

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

Class "generalMatrix" of General Matrices
nsparseMatrix-classes

Sparse "pattern" Matrices
qr-methods

QR Decomposition -- S4 Methods and Generic
triangularMatrix-class

Virtual Class of Triangular Matrices in package:Matrix
lu

Triangular Decomposition of a Square Matrix
compMatrix-class

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

Cholesky Decompositions of dsCMatrix Objects
sparseLU-class

Sparse LU decomposition of a square sparse matrix
dsRMatrix-class

Symmetric Sparse Compressed Row Matrices
dsCMatrix-class

Numeric Symmetric Sparse (column compressed) Matrices
BunchKaufman-methods

Bunch-Kaufman Decomposition Methods
externalFormats

Read and write external matrix formats
ldenseMatrix-class

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

Cholesky and Bunch-Kaufman Decompositions
SparseM-conversions

Sparse Matrix Coercion from and to those from package "SparseM"
nMatrix-class

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

Virtual Class of Symmetric Matrices in package:Matrix
RsparseMatrix-class

Class "RsparseMatrix" of Sparse Matrices in Column-compressed Form
KNex

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

Positive Semi-definite Dense Numeric Matrices
nearPD

Nearest Matrix to a Positive Definite Matrix
CAex

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

Symmetric Dense Nonzero-Pattern Matrices
sparseMatrix

General Sparse Matrix Construction from Nonzero Entries
ddiMatrix-class

Class "ddiMatrix" of Diagonal Numeric Matrices
unpack

Full Storage Representation of Packed Matrices
forceSymmetric

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

Virtual Class "ddenseMatrix" of Numeric Dense Matrices
expand

Expand a Decomposition into Factors
number-class

Class "number" of Possibly Complex Numbers
sparseVector-class

Sparse Vector Classes
sparse.model.matrix

Construct Sparse Design / Model Matrices
all.equal-methods

Matrix Methods for Function all.equal()
MatrixFactorization-class

Class "MatrixFactorization" of Matrix Factorizations
sparseMatrix-class

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

Rank of a Matrix
spMatrix

Sparse Matrix Constructor From Triplet
xtabs

Cross Tabulation, Optionally Sparse
tcrossprod

Cross-product of transpose
Schur

Schur Decomposition of a Matrix
symmpart

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

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

Class "abIndex" of Abstract Index Vectors
kronecker-methods

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

Print Sparse Matrices Flexibly
norm

Matrix Norms
chol2inv-methods

Inverse from Choleski or QR Decomposition -- Matrix Methods
drop0

Drop "Explicit Zeroes" from a Sparse Matrix
is.na-methods

is.na() Methods for 'Matrix' Objects
rleDiff-class

Class "rleDiff" of rle(diff(.)) Stored Vectors
abIseq

Sequence Generation of "abIndex", Abstract Index Vectors
lm.fit.sparse

Fitter Function for Sparse Linear Models
rep2abI

Replicate Vectors into 'abIndex' Result
condest

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