Learn R Programming

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

Matrix (version 1.2-13)

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

91,970

Version

1.2-13

License

GPL (>= 2) | file LICENCE

Maintainer

Martin Maechler

Last Published

April 2nd, 2018

Functions in Matrix (1.2-13)

Schur

Schur Decomposition of a Matrix
abIseq

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

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

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

Virtual Class "ddenseMatrix" of Numeric Dense Matrices
USCounties

USCounties Contiguity Matrix
dgTMatrix-class

Sparse matrices in triplet form
band

Extract bands of a matrix
bandSparse

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

Triangular, (compressed) sparse column matrices
dgeMatrix-class

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

Triangular Sparse Compressed Row Matrices
diagonalMatrix-class

Class "diagonalMatrix" of Diagonal Matrices
compMatrix-class

Class "compMatrix" of Composite (Factorizable) Matrices
diagU2N

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

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

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

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

Expand a Decomposition into Factors
expm

Matrix Exponential
invPerm

Inverse Permutation Vector
[-methods

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

Virtual Class "Matrix" Class of Matrices
all.equal-methods

Matrix Package Methods for Function all.equal()
cBind

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

Virtual Class "ldenseMatrix" of Dense Logical Matrices
kronecker-methods

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

Virtual Class "atomicVector" of Atomic Vectors
bdiag

Construct a Block Diagonal Matrix
abIndex-class

Class "abIndex" of Abstract Index Vectors
forceSymmetric

Force a Matrix to 'symmetricMatrix' Without Symmetry Checks
%&%-methods

Boolean Arithmetic Matrix Products: %&% and Methods
norm

Matrix Norms
nsparseMatrix-classes

Sparse "pattern" Matrices
dsCMatrix-class

Numeric Symmetric Sparse (column compressed) Matrices
drop0

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

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

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

Class "ddiMatrix" of Diagonal Numeric Matrices
rankMatrix

Rank of a Matrix
dsRMatrix-class

Symmetric Sparse Compressed Row Matrices
rcond

Estimate the Reciprocal Condition Number
formatSparseM

Formatting Sparse Numeric Matrices Utilities
chol2inv-methods

Inverse from Choleski or QR Decomposition -- Matrix Methods
isSymmetric-methods

Methods for Function isSymmetric in Package 'Matrix'
externalFormats

Read and write external matrix formats
isTriangular

isTriangular() and isDiagonal() Methods
facmul

Multiplication by Decomposition Factors
lsparseMatrix-classes

Sparse logical matrices
lsyMatrix-class

Symmetric Dense Logical Matrices
ndenseMatrix-class

Virtual Class "ndenseMatrix" of Dense Logical Matrices
matrix-products

Matrix (Cross) Products (of Transpose)
nearPD

Nearest Positive Definite Matrix
sparseQR-class

Sparse QR decomposition of a sparse matrix
printSpMatrix

Format and Print Sparse Matrices Flexibly
sparseVector-class

Sparse Vector Classes
denseMatrix-class

Virtual Class "denseMatrix" of All Dense Matrices
colSums

Form Row and Column Sums and Means
dgCMatrix-class

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

Packed Triangular Dense Matrices - "dtpMatrix"
dtrMatrix-class

Triangular, dense, numeric matrices
qr-methods

QR Decomposition -- S4 Methods and Generic
dsparseMatrix-class

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

Sparse Compressed, Row-oriented Numeric Matrices
nMatrix-class

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

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

Conversions "graph" <--> (sparse) Matrix
ldiMatrix-class

Class "ldiMatrix" of Diagonal Logical Matrices
dsyMatrix-class

Symmetric Dense (Packed | Non-packed) Numeric Matrices
image-methods

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

Class "generalMatrix" of General Matrices
ngeMatrix-class

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

Class "lgeMatrix" of General Dense Logical Matrices
rep2abI

Replicate Vectors into 'abIndex' Result
sparseMatrix

General Sparse Matrix Construction from Nonzero Entries
nnzero

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

Index Matrices
is.na-methods

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

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

Sparse Vector Construction from Nonzero Entries
number-class

Class "number" of Possibly Complex Numbers
symmetricMatrix-class

Virtual Class of Symmetric Matrices in Package Matrix
spMatrix

Sparse Matrix Constructor From Triplet
symmpart

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

Methods in Package Matrix for Function solve()
is.null.DN

Are the Dimnames dn NULL-like ?
ltrMatrix-class

Triangular Dense Logical Matrices
lu

(Generalized) Triangular Decomposition of a Matrix
pMatrix-class

Permutation matrices
rleDiff-class

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

Virtual Class of Triangular Matrices in Package Matrix
rsparsematrix

Random Sparse Matrix
nsyMatrix-class

Symmetric Dense Nonzero-Pattern Matrices
ntrMatrix-class

Triangular Dense Logical Matrices
sparseLU-class

Sparse LU decomposition of a square sparse matrix
sparse.model.matrix

Construct Sparse Design / Model Matrices
Unused-classes

Virtual Classes Not Yet Really Implemented and Used
updown

Up- and Down-Dating a Cholesky Decomposition
uniqTsparse

Unique (Sorted) TsparseMatrix Representations
unpack

Representation of Packed and Unpacked (Dense) Matrices
KhatriRao

Khatri-Rao Matrix Product
CAex

Albers' example Matrix with "Difficult" Eigen Factorization
KNex

Koenker-Ng Example Sparse Model Matrix and Response Vector
Diagonal

Create Diagonal Matrix Object
Cholesky-class

Cholesky and Bunch-Kaufman Decompositions
CsparseMatrix-class

Class "CsparseMatrix" of Sparse Matrices in Column-compressed Form
BunchKaufman-methods

Bunch-Kaufman Decomposition Methods
Hilbert

Generate a Hilbert matrix
CHMfactor-class

CHOLMOD-based Cholesky Factorizations
Cholesky

Cholesky Decomposition of a Sparse Matrix
MatrixClass

The Matrix (Super-) Class of a Class
SparseM-conversions

Sparse Matrix Coercion from and to those from package SparseM
Matrix

Construct a Classed Matrix
MatrixFactorization-class

Class "MatrixFactorization" of Matrix Factorizations
LU-class

LU (dense) Matrix Decompositions
Schur-class

Class "Schur" of Schur Matrix Factorizations
[<--methods

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

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