Learn R Programming

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

Matrix (version 1.5-4)

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

107,780

Version

1.5-4

License

GPL (>= 2) | file LICENCE

Maintainer

Last Published

April 4th, 2023

Functions in Matrix (1.5-4)

BunchKaufman-methods

Bunch-Kaufman Decomposition Methods
CAex

Albers' example Matrix with "Difficult" Eigen Factorization
Diagonal

Construct a Diagonal Matrix
CHMfactor-class

CHOLMOD-based Cholesky Factorizations
Matrix

Construct a Classed Matrix
KNex

Koenker-Ng Example Sparse Model Matrix and Response Vector
Cholesky

Cholesky Decomposition of a Sparse Matrix
Cholesky-class

Cholesky and Bunch-Kaufman Decompositions
KhatriRao

Khatri-Rao Matrix Product
MatrixClass

The Matrix (Super-) Class of a Class
Hilbert

Generate a Hilbert matrix
CsparseMatrix-class

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

LU (dense) Matrix Decompositions
Schur-class

Class "Schur" of Schur Matrix Factorizations
[-methods

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

Class "MatrixFactorization" of Matrix Factorizations
Matrix-defunct

Defunct Functions in Package Matrix
RsparseMatrix-class

Class "RsparseMatrix" of Sparse Matrices in Row-compressed Form
Schur

Schur Decomposition of a Matrix
abIndex-class

Class "abIndex" of Abstract Index Vectors
Matrix-deprecated

Deprecated Functions in Package Matrix
Matrix-class

Virtual Class "Matrix" Class of Matrices
compMatrix-class

Class "compMatrix" of Composite (Factorizable) Matrices
chol2inv-methods

Inverse from Choleski or QR Decomposition -- Matrix Methods
all.equal-methods

Matrix Package Methods for Function all.equal()
colSums

Form Row and Column Sums and Means
SparseM-conversions

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

Class "TsparseMatrix" of Sparse Matrices in Triplet Form
condest

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

USCounties Contiguity Matrix
dgCMatrix-class

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

Sparse Compressed, Row-oriented Numeric Matrices
abIseq

Sequence Generation of "abIndex", Abstract Index Vectors
band

Extract bands of a matrix
indMatrix-class

Index Matrices
atomicVector-class

Virtual Class "atomicVector" of Atomic Vectors
all-methods

"Matrix" Methods for Functions all() and any()
dMatrix-class

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

Virtual Class "ddenseMatrix" of Numeric Dense Matrices
diagU2N

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

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

Construct a Block Diagonal Matrix
bandSparse

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

Virtual Class "ldenseMatrix" of Dense Logical Matrices
%&%-methods

Boolean Arithmetic Matrix Products: %&% and Methods
ldiMatrix-class

Class "ldiMatrix" of Diagonal Logical Matrices
diagonalMatrix-class

Class "diagonalMatrix" of Diagonal Matrices
dimScale

Scale the Rows and Columns of a Matrix
dmperm

Dulmage-Mendelsohn Permutation / Decomposition
dtCMatrix-class

Triangular, (compressed) sparse column matrices
dtRMatrix-class

Triangular Sparse Compressed Row Matrices
[<--methods

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

Expand a (Matrix) Decomposition into Factors
dsCMatrix-class

Numeric Symmetric Sparse (column compressed) Matrices
dtpMatrix-class

Packed Triangular Dense Matrices - "dtpMatrix"
dsRMatrix-class

Symmetric Sparse Compressed Row Matrices
expm

Matrix Exponential
cBind

'cbind()' and 'rbind()' recursively built on cbind2/rbind2
dtrMatrix-class

Triangular, dense, numeric matrices
isTriangular

Test whether a Matrix is Triangular or Diagonal
externalFormats

Read and write external matrix formats
chol

The Cholesky Decomposition - 'Matrix' S4 Generic and Methods
dgTMatrix-class

Sparse matrices in triplet form
ddiMatrix-class

Class "ddiMatrix" of Diagonal Numeric Matrices
kronecker-methods

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

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

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

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

Class "lgeMatrix" of General Dense Logical Matrices
matrix-products

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

Symmetric Dense Nonzero-Pattern Matrices
ntrMatrix-class

Triangular Dense Logical Matrices
nMatrix-class

Class "nMatrix" of Non-zero Pattern Matrices
drop0

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

Sparse logical matrices
facmul

Multiplication by Decomposition Factors
formatSparseM

Formatting Sparse Numeric Matrices Utilities
is.null.DN

Are the Dimnames dn NULL-like ?
dsparseMatrix-class

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

Class "generalMatrix" of General Matrices
sparseVector-class

Sparse Vector Classes
graph-sparseMatrix

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

Symmetric Dense (Packed or Unpacked) Numeric Matrices
isSymmetric-methods

Methods for Function 'isSymmetric' in Package 'Matrix'
fastMisc

“Low Level” Coercions and Methods
lu

(Generalized) Triangular Decomposition of a Matrix
image-methods

Methods for image() in Package 'Matrix'
forceSymmetric

Force a Matrix to 'symmetricMatrix' Without Symmetry Checks
rcond

Estimate the Reciprocal Condition Number
rep2abI

Replicate Vectors into 'abIndex' Result
invPerm

Inverse Permutation Vector
mat2triplet

Map Matrix to its Triplet Representation
sparseVector

Sparse Vector Construction from Nonzero Entries
norm

Matrix Norms
is.na-methods

is.na(), is.finite() Methods for 'Matrix' Objects
nsparseMatrix-classes

Sparse "pattern" Matrices
sparseMatrix

General Sparse Matrix Construction from Nonzero Entries
lsyMatrix-class

Symmetric Dense Logical Matrices
ltrMatrix-class

Triangular Dense Logical Matrices
ndenseMatrix-class

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

Sparse QR decomposition of a sparse matrix
number-class

Class "number" of Possibly Complex Numbers
pMatrix-class

Permutation matrices
nearPD

Nearest Positive Definite Matrix
rsparsematrix

Random Sparse Matrix
unpack

Representation of Packed and Unpacked Dense Matrices
replValue-class

Virtual Class "replValue" - Simple Class for Subassignment Values
unpackedMatrix-class

Virtual Class "unpackedMatrix" of Unpacked Dense Matrices
rleDiff-class

Class "rleDiff" of rle(diff(.)) Stored Vectors
qr-methods

QR Decomposition -- S4 Methods and Generic
ngeMatrix-class

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

The Number of Non-Zero Values of a Matrix
rankMatrix

Rank of a Matrix
packedMatrix-class

Virtual Class "packedMatrix" of Packed Dense Matrices
printSpMatrix

Format and Print Sparse Matrices Flexibly
solve-methods

Methods in Package Matrix for Function solve()
symmetricMatrix-class

Virtual Class of Symmetric Matrices in Package Matrix
symmpart

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

Sparse LU decomposition of a square sparse matrix
spMatrix

Sparse Matrix Constructor From Triplet
sparseMatrix-class

Virtual Class "sparseMatrix" --- Mother of Sparse Matrices
sparse.model.matrix

Construct Sparse Design / Model Matrices
wrld_1deg

World 1-degree grid contiguity matrix
triangularMatrix-class

Virtual Class of Triangular Matrices in Package Matrix
uniqTsparse

Unique (Sorted) TsparseMatrix Representations
Unused-classes

Virtual Classes Not Yet Really Implemented and Used
updown

Up- and Down-Dating a Cholesky Decomposition