Learn R Programming

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

Matrix (version 1.6-0)

Sparse and Dense Matrix Classes and Methods

Description

A rich hierarchy of sparse and dense matrix classes, including general, triangular, symmetric, and diagonal matrices with numeric, logical, or pattern entries. Efficient methods for operating on such matrices, often wrapping the 'BLAS', 'LAPACK', and 'SuiteSparse' libraries.

Copy Link

Version

Install

install.packages('Matrix')

Monthly Downloads

74,588

Version

1.6-0

License

GPL (>= 2) | file LICENCE

Maintainer

Martin Maechler

Last Published

July 8th, 2023

Functions in Matrix (1.6-0)

Hilbert

Generate a Hilbert matrix
Cholesky-methods

Methods for Cholesky Factorization
CsparseMatrix-class

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

Dense Bunch-Kaufman Factorizations
BunchKaufman-methods

Methods for Bunch-Kaufman Factorization
Diagonal

Construct a Diagonal Matrix
CAex

Albers' example Matrix with "Difficult" Eigen Factorization
KNex

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

Sparse Cholesky Factorizations
Cholesky-class

Dense Cholesky Factorizations
MatrixClass

The Matrix (Super-) Class of a Class
KhatriRao

Khatri-Rao Matrix Product
denseLU-class

Dense LU Factorizations
MatrixFactorization-class

Virtual Class "MatrixFactorization" of Matrix Factorizations
Schur-class

Schur Factorizations
RsparseMatrix-class

Class "RsparseMatrix" of Sparse Matrices in Row-compressed Form
Matrix-deprecated

Deprecated Functions in Package Matrix
all-methods

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

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

Virtual Class "Matrix" of Matrices
Matrix-defunct

Defunct Functions in Package Matrix
coerce-methods-SparseM

Sparse Matrix Coercion from and to those from package SparseM
USCounties

Contiguity Matrix of U.S. Counties
Schur-methods

Methods for Schur Factorization
Matrix

Construct a Classed Matrix
Subscript-methods

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

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

Sparse Compressed, Row-oriented Numeric Matrices
cbind2-methods

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

Sparse matrices in triplet form
abIseq

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

Class "abIndex" of Abstract Index Vectors
Subassign-methods

Methods for "[<-" - Assigning to Subsets for 'Matrix'
chol-methods

Compute the Cholesky Factor of a Matrix
TsparseMatrix-class

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

Virtual Class "denseMatrix" of All Dense Matrices
drop0

Drop "Explicit Zeroes" from a Sparse Matrix
bdiag

Construct a Block Diagonal Matrix
bandSparse

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

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

Symmetric Sparse Compressed Row Matrices
dsparseMatrix-class

Virtual Class "dsparseMatrix" of Numeric Sparse Matrices
chol2inv-methods

Inverse from Cholesky Factor
facmul-methods

Multiplication by Factors from Matrix Factorizations
dsCMatrix-class

Numeric Symmetric Sparse (column compressed) Matrices
dgeMatrix-class

Class "dgeMatrix" of Dense Numeric (S4 Class) Matrices
fastMisc

“Low Level” Coercions and Methods
diagonalMatrix-class

Class "diagonalMatrix" of Diagonal Matrices
dimScale

Scale the Rows and Columns of a Matrix
dtRMatrix-class

Triangular Sparse Compressed Row Matrices
expm-methods

Matrix Exponential
diagU2N

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

Packed Triangular Dense Matrices - "dtpMatrix"
index-class

Virtual Class "index" - Simple Class for Matrix Indices
atomicVector-class

Virtual Class "atomicVector" of Atomic Vectors
invertPerm

Utilities for Permutation Vectors
externalFormats

Read and write external matrix formats
colSums-methods

Form Row and Column Sums and Means
generalMatrix-class

Class "generalMatrix" of General Matrices
compMatrix-class

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

Virtual Class "ddenseMatrix" of Numeric Dense Matrices
kronecker-methods

Methods for Function 'kronecker()' in Package 'Matrix'
coerce-methods-graph

Conversions "graph" <--> (sparse) Matrix
is.na-methods

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

Sparse "pattern" Matrices
nsyMatrix-class

Symmetric Dense Nonzero-Pattern Matrices
ldenseMatrix-class

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

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

Class "ddiMatrix" of Diagonal Numeric Matrices
pMatrix-class

Permutation matrices
dsyMatrix-class

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

Extract bands of a matrix
indMatrix-class

Index Matrices
dtCMatrix-class

Triangular, (compressed) sparse column matrices
dtrMatrix-class

Triangular, dense, numeric matrices
is.null.DN

Are the Dimnames dn NULL-like ?
lsparseMatrix-classes

Sparse logical matrices
expand-methods

Expand Matrix Factorizations
ldiMatrix-class

Class "ldiMatrix" of Diagonal Logical Matrices
condest

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

Symmetric Dense Logical Matrices
lgeMatrix-class

Class "lgeMatrix" of General Dense Logical Matrices
nearPD

Nearest Positive Definite Matrix
nnzero-methods

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

Triangular Dense Logical Matrices
lu-methods

Methods for LU Factorization
norm-methods

Matrix Norms
dMatrix-class

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

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

Dulmage-Mendelsohn Permutation / Decomposition
dpoMatrix-class

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

Format and Print Sparse Matrices Flexibly
packedMatrix-class

Virtual Class "packedMatrix" of Packed Dense Matrices
rleDiff-class

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

Rank of a Matrix
rcond-methods

Estimate the Reciprocal Condition Number
rsparsematrix

Random Sparse Matrix
sparse.model.matrix

Construct Sparse Design / Model Matrices
solve-methods

Methods in Package Matrix for Function solve
qr-methods

Methods for QR Factorization
nMatrix-class

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

Sparse LU Factorizations
sparseQR-class

Sparse QR Factorizations
spMatrix

Sparse Matrix Constructor From Triplet
sparseVector-class

Sparse Vector Classes
ndenseMatrix-class

Virtual Class "ndenseMatrix" of Dense Logical Matrices
updown-methods

Updating and Downdating Sparse Cholesky Factorizations
wrld_1deg

Contiguity Matrix of World One-Degree Grid Cells
symmpart-methods

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

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

Unique (Sorted) TsparseMatrix Representations
pack

Representation of Packed and Unpacked Dense Matrices
sparseMatrix

General Sparse Matrix Construction from Nonzero Entries
triangularMatrix-class

Virtual Class of Triangular Matrices in Package Matrix
forceSymmetric-methods

Force a Matrix to 'symmetricMatrix' Without Symmetry Checks
formatSparseM

Formatting Sparse Numeric Matrices Utilities
isSymmetric-methods

Methods for Function 'isSymmetric' in Package 'Matrix'
isTriangular-methods

Test whether a Matrix is Triangular or Diagonal
mat2triplet

Map Matrix to its Triplet Representation
matmult-methods

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

Triangular Dense Logical Matrices
number-class

Class "number" of Possibly Complex Numbers
rep2abI

Replicate Vectors into 'abIndex' Result
replValue-class

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

Sparse Vector Construction from Nonzero Entries
symmetricMatrix-class

Virtual Class of Symmetric Matrices in Package Matrix
unpackedMatrix-class

Virtual Class "unpackedMatrix" of Unpacked Dense Matrices
Matrix-notyet

Virtual Classes Not Yet Really Implemented and Used