Learn R Programming

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

Matrix (version 1.3-2)

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

118,373

Version

1.3-2

License

GPL (>= 2) | file LICENCE

Maintainer

Martin Maechler

Last Published

January 6th, 2021

Functions in Matrix (1.3-2)

BunchKaufman-methods

Bunch-Kaufman Decomposition Methods
KNex

Koenker-Ng Example Sparse Model Matrix and Response Vector
CAex

Albers' example Matrix with "Difficult" Eigen Factorization
KhatriRao

Khatri-Rao Matrix Product
Hilbert

Generate a Hilbert matrix
Cholesky-class

Cholesky and Bunch-Kaufman Decompositions
Diagonal

Create Diagonal Matrix Object
CsparseMatrix-class

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

CHOLMOD-based Cholesky Factorizations
Cholesky

Cholesky Decomposition of a Sparse Matrix
Schur-class

Class "Schur" of Schur Matrix Factorizations
LU-class

LU (dense) Matrix Decompositions
Matrix-class

Virtual Class "Matrix" Class of Matrices
SparseM-conversions

Sparse Matrix Coercion from and to those from package SparseM
[<--methods

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

Class "TsparseMatrix" of Sparse Matrices in Triplet Form
USCounties

USCounties Contiguity Matrix
Schur

Schur Decomposition of a Matrix
atomicVector-class

Virtual Class "atomicVector" of Atomic Vectors
all.equal-methods

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

Class "RsparseMatrix" of Sparse Matrices in Column-compressed Form
%&%-methods

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

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

Construct a Block Diagonal Matrix
MatrixFactorization-class

Class "MatrixFactorization" of Matrix Factorizations
abIseq

Sequence Generation of "abIndex", Abstract Index Vectors
cBind

Versions of 'cbind' and 'rbind' recursively built on cbind2/rbind2
colSums

Form Row and Column Sums and Means
chol2inv-methods

Inverse from Choleski or QR Decomposition -- Matrix Methods
dMatrix-class

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

Choleski Decomposition - 'Matrix' S4 Generic and Methods
ddenseMatrix-class

Virtual Class "ddenseMatrix" of Numeric Dense Matrices
condest

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

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

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

Class "diagonalMatrix" of Diagonal Matrices
compMatrix-class

Class "compMatrix" of Composite (Factorizable) Matrices
Matrix

Construct a Classed Matrix
diagU2N

Transform Triangular Matrices from Unit Triangular to General Triangular and Back
band

Extract bands of a matrix
abIndex-class

Class "abIndex" of Abstract Index Vectors
dgCMatrix-class

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

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

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

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

Class "ddiMatrix" of Diagonal Numeric Matrices
dtRMatrix-class

Triangular Sparse Compressed Row Matrices
dtCMatrix-class

Triangular, (compressed) sparse column matrices
dtpMatrix-class

Packed Triangular Dense Matrices - "dtpMatrix"
dpoMatrix-class

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

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

Symmetric Dense (Packed | Non-packed) Numeric Matrices
forceSymmetric

Force a Matrix to 'symmetricMatrix' Without Symmetry Checks
formatSparseM

Formatting Sparse Numeric Matrices Utilities
generalMatrix-class

Class "generalMatrix" of General Matrices
isTriangular

isTriangular() and isDiagonal() Methods
isSymmetric-methods

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

Numeric Symmetric Sparse (column compressed) Matrices
dsRMatrix-class

Symmetric Sparse Compressed Row Matrices
dgTMatrix-class

Sparse matrices in triplet form
dgeMatrix-class

Class "dgeMatrix" of Dense Numeric (S4 Class) Matrices
is.na-methods

is.na(), is.infinite() Methods for 'Matrix' Objects
graph-sparseMatrix

Conversions "graph" <--> (sparse) Matrix
is.null.DN

Are the Dimnames dn NULL-like ?
expand

Expand a (Matrix) Decomposition into Factors
expm

Matrix Exponential
dgRMatrix-class

Sparse Compressed, Row-oriented Numeric Matrices
ltrMatrix-class

Triangular Dense Logical Matrices
lsyMatrix-class

Symmetric Dense Logical Matrices
image-methods

Methods for image() in Package 'Matrix'
lsparseMatrix-classes

Sparse logical matrices
indMatrix-class

Index Matrices
externalFormats

Read and write external matrix formats
ndenseMatrix-class

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

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

Triangular, dense, numeric matrices
index-class

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

Inverse Permutation Vector
nsparseMatrix-classes

Sparse "pattern" Matrices
lu

(Generalized) Triangular Decomposition of a Matrix
kronecker-methods

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

Class "ldiMatrix" of Diagonal Logical Matrices
facmul

Multiplication by Decomposition Factors
nnzero

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

Sparse LU decomposition of a square sparse matrix
nsyMatrix-class

Symmetric Dense Nonzero-Pattern Matrices
sparseMatrix-class

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

Virtual Class "ldenseMatrix" of Dense Logical Matrices
nearPD

Nearest Positive Definite Matrix
ngeMatrix-class

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

Triangular Dense Logical Matrices
number-class

Class "number" of Possibly Complex Numbers
rsparsematrix

Random Sparse Matrix
qr-methods

QR Decomposition -- S4 Methods and Generic
norm

Matrix Norms
updown

Up- and Down-Dating a Cholesky Decomposition
solve-methods

Methods in Package Matrix for Function solve()
mat2triplet

Map Matrix to its Triplet Representation
pMatrix-class

Permutation matrices
printSpMatrix

Format and Print Sparse Matrices Flexibly
spMatrix

Sparse Matrix Constructor From Triplet
matrix-products

Matrix (Cross) Products (of Transpose)
rep2abI

Replicate Vectors into 'abIndex' Result
rcond

Estimate the Reciprocal Condition Number
sparseVector

Sparse Vector Construction from Nonzero Entries
sparseVector-class

Sparse Vector Classes
wrld_1deg

World 1-degree grid contiguity matrix
rankMatrix

Rank of a Matrix
lgeMatrix-class

Class "lgeMatrix" of General Dense Logical Matrices
sparse.model.matrix

Construct Sparse Design / Model Matrices
Unused-classes

Virtual Classes Not Yet Really Implemented and Used
replValue-class

Virtual Class "replValue" - Simple Class for subassignment Values
unpack

Representation of Packed and Unpacked (Dense) Matrices
symmetricMatrix-class

Virtual Class of Symmetric Matrices in Package Matrix
rleDiff-class

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

General Sparse Matrix Construction from Nonzero Entries
sparseQR-class

Sparse QR decomposition of a sparse matrix
triangularMatrix-class

Virtual Class of Triangular Matrices in Package Matrix
symmpart

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

Unique (Sorted) TsparseMatrix Representations