Learn R Programming

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

Matrix (version 1.3-0)

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

55,853

Version

1.3-0

License

GPL (>= 2) | file LICENCE

Maintainer

Last Published

December 22nd, 2020

Functions in Matrix (1.3-0)

BunchKaufman-methods

Bunch-Kaufman Decomposition Methods
KNex

Koenker-Ng Example Sparse Model Matrix and Response Vector
Cholesky

Cholesky Decomposition of a Sparse Matrix
Diagonal

Create Diagonal Matrix Object
Cholesky-class

Cholesky and Bunch-Kaufman Decompositions
CHMfactor-class

CHOLMOD-based Cholesky Factorizations
Hilbert

Generate a Hilbert matrix
SparseM-conversions

Sparse Matrix Coercion from and to those from package SparseM
CAex

Albers' example Matrix with "Difficult" Eigen Factorization
CsparseMatrix-class

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

Khatri-Rao Matrix Product
LU-class

LU (dense) Matrix Decompositions
Matrix

Construct a Classed Matrix
MatrixFactorization-class

Class "MatrixFactorization" of Matrix Factorizations
Matrix-class

Virtual Class "Matrix" Class of Matrices
[<--methods

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

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

Virtual Class "atomicVector" of Atomic Vectors
RsparseMatrix-class

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

Class "Schur" of Schur Matrix Factorizations
bandSparse

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

Extract bands of a matrix
all.equal-methods

Matrix Package Methods for Function all.equal()
MatrixClass

The Matrix (Super-) Class of a Class
chol2inv-methods

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

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

Form Row and Column Sums and Means
condest

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

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

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

Sparse matrices in triplet form
all-methods

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

Class "abIndex" of Abstract Index Vectors
USCounties

USCounties Contiguity Matrix
dgeMatrix-class

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

Schur Decomposition of a Matrix
compMatrix-class

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

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

Sparse Compressed, Row-oriented Numeric Matrices
dMatrix-class

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

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

Symmetric Dense (Packed | Non-packed) Numeric Matrices
bdiag

Construct a Block Diagonal Matrix
%&%-methods

Boolean Arithmetic Matrix Products: %&% and Methods
chol

Choleski Decomposition - 'Matrix' S4 Generic and Methods
image-methods

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

Class "generalMatrix" of General Matrices
dtpMatrix-class

Packed Triangular Dense Matrices - "dtpMatrix"
diagU2N

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

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

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

Triangular, dense, numeric matrices
isSymmetric-methods

Methods for Function isSymmetric in Package 'Matrix'
index-class

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

Index Matrices
dtCMatrix-class

Triangular, (compressed) sparse column matrices
is.na-methods

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

Are the Dimnames dn NULL-like ?
diagonalMatrix-class

Class "diagonalMatrix" of Diagonal Matrices
graph-sparseMatrix

Conversions "graph" <--> (sparse) Matrix
mat2triplet

Map Matrix to its Triplet Representation
isTriangular

isTriangular() and isDiagonal() Methods
nsyMatrix-class

Symmetric Dense Nonzero-Pattern Matrices
matrix-products

Matrix (Cross) Products (of Transpose)
nsparseMatrix-classes

Sparse "pattern" Matrices
invPerm

Inverse Permutation Vector
ngeMatrix-class

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

QR Decomposition -- S4 Methods and Generic
rankMatrix

Rank of a Matrix
nearPD

Nearest Positive Definite Matrix
ldenseMatrix-class

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

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

Class "ddiMatrix" of Diagonal Numeric Matrices
ddenseMatrix-class

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

Triangular Sparse Compressed Row Matrices
kronecker-methods

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

Virtual Class "denseMatrix" of All Dense Matrices
nnzero

The Number of Non-Zero Values of a Matrix
sparseMatrix

General Sparse Matrix Construction from Nonzero Entries
sparseVector-class

Sparse Vector Classes
rsparsematrix

Random Sparse Matrix
norm

Matrix Norms
replValue-class

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

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

Sparse Vector Construction from Nonzero Entries
dsCMatrix-class

Numeric Symmetric Sparse (column compressed) Matrices
pMatrix-class

Permutation matrices
facmul

Multiplication by Decomposition Factors
lsyMatrix-class

Symmetric Dense Logical Matrices
lsparseMatrix-classes

Sparse logical matrices
dsRMatrix-class

Symmetric Sparse Compressed Row Matrices
externalFormats

Read and write external matrix formats
printSpMatrix

Format and Print Sparse Matrices Flexibly
forceSymmetric

Force a Matrix to 'symmetricMatrix' Without Symmetry Checks
expand

Expand a (Matrix) Decomposition into Factors
updown

Up- and Down-Dating a Cholesky Decomposition
expm

Matrix Exponential
wrld_1deg

World 1-degree grid contiguity matrix
sparseLU-class

Sparse LU decomposition of a square sparse matrix
ltrMatrix-class

Triangular Dense Logical Matrices
symmetricMatrix-class

Virtual Class of Symmetric Matrices in Package Matrix
sparseQR-class

Sparse QR decomposition of a sparse matrix
sparseMatrix-class

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

Virtual Class of Triangular Matrices in Package Matrix
formatSparseM

Formatting Sparse Numeric Matrices Utilities
symmpart

Symmetric Part and Skew(symmetric) Part of a Matrix
uniqTsparse

Unique (Sorted) TsparseMatrix Representations
lu

(Generalized) Triangular Decomposition of a Matrix
number-class

Class "number" of Possibly Complex Numbers
ntrMatrix-class

Triangular Dense Logical Matrices
ndenseMatrix-class

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

Class "ldiMatrix" of Diagonal Logical Matrices
lgeMatrix-class

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

Class "nMatrix" of Non-zero Pattern Matrices
sparse.model.matrix

Construct Sparse Design / Model Matrices
spMatrix

Sparse Matrix Constructor From Triplet
rep2abI

Replicate Vectors into 'abIndex' Result
unpack

Representation of Packed and Unpacked (Dense) Matrices
rcond

Estimate the Reciprocal Condition Number
Unused-classes

Virtual Classes Not Yet Really Implemented and Used