Learn R Programming

Matrix (version 1.7-1)

Sparse and Dense Matrix Classes and Methods

Description

A rich hierarchy of sparse and dense matrix classes, including general, symmetric, triangular, 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

101,511

Version

1.7-1

License

GPL (>= 2) | file LICENCE

Maintainer

Last Published

October 18th, 2024

Functions in Matrix (1.7-1)

MatrixClass

The Matrix (Super-) Class of a Class
Matrix-notyet

Virtual Classes Not Yet Really Implemented and Used
MatrixFactorization-class

Virtual Class "MatrixFactorization" of Matrix Factorizations
Matrix-deprecated

Deprecated Functions in Package Matrix
Matrix-defunct

Defunct Functions in Package Matrix
Matrix

Construct a Classed Matrix
KhatriRao

Khatri-Rao Matrix Product
Matrix-class

Virtual Class "Matrix" of Matrices
RsparseMatrix-class

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

Schur Factorizations
Schur-methods

Methods for Schur Factorization
abIndex-class

Class "abIndex" of Abstract Index Vectors
USCounties

Contiguity Matrix of U.S. Counties
TsparseMatrix-class

Class "TsparseMatrix" of Sparse Matrices in Triplet Form
abIseq

Sequence Generation of "abIndex", Abstract Index Vectors
asUniqueT

Standardize a Sparse Matrix in Triplet Format
all.equal-methods

Matrix Package Methods for Function all.equal()
bandSparse

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

Extract bands of a matrix
bdiag

Construct a Block Diagonal Matrix
chol2inv-methods

Inverse from Cholesky Factor
chol-methods

Compute the Cholesky Factor of a Matrix
colSums-methods

Form Row and Column Sums and Means
condest

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

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

(Virtual) Class "dMatrix" of "double" Matrices
boolmatmult-methods

Boolean Arithmetic Matrix Products: %&% and Methods
coerce-methods-SparseM

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

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

Sparse Compressed, Row-oriented Numeric Matrices
dgCMatrix-class

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

Class "diagonalMatrix" of Diagonal Matrices
dimScale

Scale the Rows and Columns of a Matrix
dgeMatrix-class

Class "dgeMatrix" of Dense Numeric (S4 Class) Matrices
coerce-methods-graph

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

'cbind()' and 'rbind()' recursively built on cbind2/rbind2
drop0

Drop Non-Structural Zeros from a Sparse Matrix
dsCMatrix-class

Numeric Symmetric Sparse (column compressed) Matrices
ddiMatrix-class

Class "ddiMatrix" of Diagonal Numeric Matrices
diagU2N

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

Dense LU Factorizations
dgTMatrix-class

Sparse matrices in triplet form
facmul-methods

Multiplication by Factors from Matrix Factorizations
dtRMatrix-class

Triangular Sparse Compressed Row Matrices
dtpMatrix-class

Packed Triangular Dense Matrices - "dtpMatrix"
dtrMatrix-class

Triangular, dense, numeric matrices
dsRMatrix-class

Symmetric Sparse Compressed Row Matrices
dsyMatrix-class

Symmetric Dense (Packed or Unpacked) Numeric Matrices
dtCMatrix-class

Triangular, (compressed) sparse column matrices
indMatrix-class

Index Matrices
index-class

Virtual Class “index” of Index Vectors
expm-methods

Matrix Exponential
dmperm

Dulmage-Mendelsohn Permutation / Decomposition
lu-methods

Methods for LU Factorization
expand-methods

Expand Matrix Factorizations
fastMisc

“Low Level” Coercions and Methods
invertPerm

Utilities for Permutation Vectors
matmult-methods

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

Virtual Class "dsparseMatrix" of Numeric Sparse Matrices
externalFormats

Read and write external matrix formats
nMatrix-class

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

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

Matrix Norms
nsparseMatrix-class

Sparse "pattern" Matrices
ldenseMatrix-class

Virtual Class "ldenseMatrix" of Dense Logical Matrices
mat2triplet

Map Matrix to its Triplet Representation
ngeMatrix-class

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

Class "generalMatrix" of General Matrices
forceSymmetric-methods

Force a Matrix to 'symmetricMatrix' Without Symmetry Checks
nnzero-methods

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

Class "ldiMatrix" of Diagonal Logical Matrices
is.na-methods

is.na(), is.finite() Methods for 'Matrix' Objects
sparse.model.matrix

Construct Sparse Design / Model Matrices
lgeMatrix-class

Class "lgeMatrix" of General Dense Logical Matrices
qr-methods

Methods for QR Factorization
formatSparseM

Formatting Sparse Numeric Matrices Utilities
sparseLU-class

Sparse LU Factorizations
is.null.DN

Are the Dimnames dn NULL-like ?
image-methods

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

Sparse logical matrices
nsyMatrix-class

Symmetric Dense Nonzero-Pattern Matrices
rankMatrix

Rank of a Matrix
isTriangular-methods

Test whether a Matrix is Triangular or Diagonal
kronecker-methods

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

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

Triangular Dense Logical Matrices
lsyMatrix-class

Symmetric Dense Logical Matrices
isSymmetric-methods

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

General Sparse Matrix Construction from Nonzero Entries
solve-methods

Methods in Package Matrix for Function solve
sparseQR-class

Sparse QR Factorizations
spMatrix

Sparse Matrix Constructor From Triplet
pMatrix-class

Permutation matrices
sparseVector-class

Sparse Vector Classes
ndenseMatrix-class

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

Triangular Dense Logical Matrices
wrld_1deg

Contiguity Matrix of World One-Degree Grid Cells
nearPD

Nearest Positive Definite Matrix
subscript-methods

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

Sparse Vector Construction from Nonzero Entries
subassign-methods

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

Virtual Class of Symmetric Matrices in Package Matrix
pack-methods

Representation of Packed and Unpacked Dense Matrices
packedMatrix-class

Virtual Class "packedMatrix" of Packed Dense Matrices
printSpMatrix

Format and Print Sparse Matrices Flexibly
rleDiff-class

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

Estimate the Reciprocal Condition Number
rep2abI

Replicate Vectors into 'abIndex' Result
symmpart-methods

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

Virtual Class of Triangular Matrices in Package Matrix
rsparsematrix

Random Sparse Matrix
unpackedMatrix-class

Virtual Class "unpackedMatrix" of Unpacked Dense Matrices
updown-methods

Updating and Downdating Sparse Cholesky Factorizations
CHMfactor-class

Sparse Cholesky Factorizations
BunchKaufman-methods

Methods for Bunch-Kaufman Factorization
CsparseMatrix-class

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

Albers' example Matrix with "Difficult" Eigen Factorization
KNex

Koenker-Ng Example Sparse Model Matrix and Response Vector
Cholesky-methods

Methods for Cholesky Factorization
Hilbert

Generate a Hilbert matrix
Diagonal

Construct a Diagonal Matrix
BunchKaufman-class

Dense Bunch-Kaufman Factorizations
Cholesky-class

Dense Cholesky Factorizations