Learn R Programming

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

Matrix (version 1.2-14)

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

125,131

Version

1.2-14

License

GPL (>= 2) | file LICENCE

Maintainer

Martin Maechler

Last Published

April 9th, 2018

Functions in Matrix (1.2-14)

MatrixClass

The Matrix (Super-) Class of a Class
all.equal-methods

Matrix Package Methods for Function all.equal()
[-methods

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

Class "abIndex" of Abstract Index Vectors
dsCMatrix-class

Numeric Symmetric Sparse (column compressed) Matrices
dsRMatrix-class

Symmetric Sparse Compressed Row Matrices
image-methods

Methods for image() in Package 'Matrix'
colSums

Form Row and Column Sums and Means
dgTMatrix-class

Sparse matrices in triplet form
chol2inv-methods

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

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

Sparse Compressed, Row-oriented Numeric Matrices
atomicVector-class

Virtual Class "atomicVector" of Atomic Vectors
ddenseMatrix-class

Virtual Class "ddenseMatrix" of Numeric Dense Matrices
dMatrix-class

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

Expand a Decomposition into Factors
expm

Matrix Exponential
dgeMatrix-class

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

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

Inverse Permutation Vector
band

Extract bands of a matrix
is.na-methods

is.na(), is.infinite() Methods for 'Matrix' Objects
bandSparse

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

Class "compMatrix" of Composite (Factorizable) Matrices
condest

Compute Approximate CONDition number and 1-Norm of (Large) Matrices
is.null.DN

Are the Dimnames dn NULL-like ?
[<--methods

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

Construct a Block Diagonal Matrix
all-methods

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

Sequence Generation of "abIndex", Abstract Index Vectors
TsparseMatrix-class

Class "TsparseMatrix" of Sparse Matrices in Triplet Form
USCounties

USCounties Contiguity Matrix
ngeMatrix-class

Class "ngeMatrix" of General Dense Nonzero-pattern Matrices
kronecker-methods

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

Index Matrices
cBind

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

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

Triangular Dense Logical Matrices
lu

(Generalized) Triangular Decomposition of a Matrix
ldenseMatrix-class

Virtual Class "ldenseMatrix" of Dense Logical Matrices
rankMatrix

Rank of a Matrix
diagU2N

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

Virtual Class "denseMatrix" of All Dense Matrices
rcond

Estimate the Reciprocal Condition Number
ddiMatrix-class

Class "ddiMatrix" of Diagonal Numeric Matrices
diagonalMatrix-class

Class "diagonalMatrix" of Diagonal Matrices
%&%-methods

Boolean Arithmetic Matrix Products: %&% and Methods
nnzero

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

Triangular, (compressed) sparse column matrices
qr-methods

QR Decomposition -- S4 Methods and Generic
sparseMatrix-class

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

Format and Print Sparse Matrices Flexibly
sparseLU-class

Sparse LU decomposition of a square sparse matrix
dpoMatrix-class

Positive Semi-definite Dense (Packed | Non-packed) Numeric Matrices
sparse.model.matrix

Construct Sparse Design / Model Matrices
dtRMatrix-class

Triangular Sparse Compressed Row Matrices
sparseMatrix

General Sparse Matrix Construction from Nonzero Entries
generalMatrix-class

Class "generalMatrix" of General Matrices
drop0

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

Virtual Class "dsparseMatrix" of Numeric Sparse Matrices
sparseVector

Sparse Vector Construction from Nonzero Entries
dsyMatrix-class

Symmetric Dense (Packed | Non-packed) Numeric Matrices
Unused-classes

Virtual Classes Not Yet Really Implemented and Used
symmetricMatrix-class

Virtual Class of Symmetric Matrices in Package Matrix
updown

Up- and Down-Dating a Cholesky Decomposition
formatSparseM

Formatting Sparse Numeric Matrices Utilities
forceSymmetric

Force a Matrix to 'symmetricMatrix' Without Symmetry Checks
lsparseMatrix-classes

Sparse logical matrices
lsyMatrix-class

Symmetric Dense Logical Matrices
nMatrix-class

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

Class "number" of Possibly Complex Numbers
matrix-products

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

Packed Triangular Dense Matrices - "dtpMatrix"
graph-sparseMatrix

Conversions "graph" <--> (sparse) Matrix
isSymmetric-methods

Methods for Function isSymmetric in Package 'Matrix'
isTriangular

isTriangular() and isDiagonal() Methods
ndenseMatrix-class

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

Permutation matrices
dtrMatrix-class

Triangular, dense, numeric matrices
nearPD

Nearest Positive Definite Matrix
solve-methods

Methods in Package Matrix for Function solve()
externalFormats

Read and write external matrix formats
nsyMatrix-class

Symmetric Dense Nonzero-Pattern Matrices
ntrMatrix-class

Triangular Dense Logical Matrices
facmul

Multiplication by Decomposition Factors
ldiMatrix-class

Class "ldiMatrix" of Diagonal Logical Matrices
lgeMatrix-class

Class "lgeMatrix" of General Dense Logical Matrices
sparseQR-class

Sparse QR decomposition of a sparse matrix
norm

Matrix Norms
sparseVector-class

Sparse Vector Classes
spMatrix

Sparse Matrix Constructor From Triplet
nsparseMatrix-classes

Sparse "pattern" Matrices
rep2abI

Replicate Vectors into 'abIndex' Result
symmpart

Symmetric Part and Skew(symmetric) Part of a Matrix
replValue-class

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

Virtual Class of Triangular Matrices in Package Matrix
rleDiff-class

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

Unique (Sorted) TsparseMatrix Representations
rsparsematrix

Random Sparse Matrix
unpack

Representation of Packed and Unpacked (Dense) Matrices
Diagonal

Create Diagonal Matrix Object
Cholesky-class

Cholesky and Bunch-Kaufman Decompositions
CAex

Albers' example Matrix with "Difficult" Eigen Factorization
Hilbert

Generate a Hilbert matrix
BunchKaufman-methods

Bunch-Kaufman Decomposition Methods
KNex

Koenker-Ng Example Sparse Model Matrix and Response Vector
Cholesky

Cholesky Decomposition of a Sparse Matrix
CHMfactor-class

CHOLMOD-based Cholesky Factorizations
RsparseMatrix-class

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

Khatri-Rao Matrix Product
Matrix-class

Virtual Class "Matrix" Class of Matrices
SparseM-conversions

Sparse Matrix Coercion from and to those from package SparseM
Schur-class

Class "Schur" of Schur Matrix Factorizations
LU-class

LU (dense) Matrix Decompositions
Schur

Schur Decomposition of a Matrix
MatrixFactorization-class

Class "MatrixFactorization" of Matrix Factorizations
CsparseMatrix-class

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

Construct a Classed Matrix