Learn R Programming

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

Matrix (version 1.2-10)

Sparse and Dense Matrix Classes and Methods

Description

Classes and methods for dense and sparse matrices and operations on them using 'LAPACK' and 'SuiteSparse'.

Copy Link

Version

Install

install.packages('Matrix')

Monthly Downloads

74,588

Version

1.2-10

License

GPL (>= 2) | file LICENCE

Maintainer

Martin Maechler

Last Published

April 28th, 2017

Functions in Matrix (1.2-10)

Diagonal

Create Diagonal Matrix Object
Hilbert

Generate a Hilbert matrix
Matrix

Construct a Classed Matrix
Cholesky

Cholesky Decomposition of a Sparse Matrix
CsparseMatrix-class

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

Class "TsparseMatrix" of Sparse Matrices in Triplet Form
USCounties

USCounties Contiguity Matrix
Schur-class

Class "Schur" of Schur Matrix Factorizations
Schur

Schur Decomposition of a Matrix
bdiag

Construct a Block Diagonal Matrix
%&%-methods

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

Positive Semi-definite Dense Numeric Matrices
KNex

Koenker-Ng Example Sparse Model Matrix and Response Vector
KhatriRao

Khatri-Rao Matrix Product
LU-class

LU (dense) Matrix Decompositions
Matrix-class

Virtual Class "Matrix" Class of Matrices
[-methods

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

Bunch-Kaufman Decomposition Methods
CAex

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

Class "MatrixFactorization" of Matrix Factorizations
RsparseMatrix-class

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

CHOLMOD-based Cholesky Factorizations
Cholesky-class

Cholesky and Bunch-Kaufman Decompositions
SparseM-conversions

Sparse Matrix Coercion from and to those from package SparseM
[<--methods

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

Class "compMatrix" of Composite (Factorizable) Matrices
condest

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

Transform Triangular Matrices from Unit Triangular to General Triangular and Back
MatrixClass

The Matrix (Super-) Class of a Class
abIseq

Sequence Generation of "abIndex", Abstract Index Vectors
all-methods

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

Expand a Decomposition into Factors
drop0

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

Packed Triangular Dense Matrices - "dtpMatrix"
dtrMatrix-class

Triangular, dense, numeric matrices
kronecker-methods

Methods for Function 'kronecker()' in Package 'Matrix'
all.equal-methods

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

Virtual Class "atomicVector" of Atomic Vectors
dMatrix-class

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

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

Virtual Class "ldenseMatrix" of Dense Logical Matrices
matrix-products

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

Class "nMatrix" of Non-zero Pattern Matrices
printSpMatrix

Format and Print Sparse Matrices Flexibly
diagonalMatrix-class

Class "diagonalMatrix" of Diagonal Matrices
dsCMatrix-class

Numeric Symmetric Sparse (column compressed) Matrices
dsRMatrix-class

Symmetric Sparse Compressed Row Matrices
forceSymmetric

Force a Matrix to 'symmetricMatrix' Without Symmetry Checks
dgCMatrix-class

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

Sparse Compressed, Row-oriented Numeric Matrices
dsparseMatrix-class

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

Symmetric Dense Numeric Matrices
abIndex-class

Class "abIndex" of Abstract Index Vectors
cBind

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

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

Sparse matrices in triplet form
qr-methods

QR Decomposition -- S4 Methods and Generic
solve-methods

Methods in Package Matrix for Function solve()
spMatrix

Sparse Matrix Constructor From Triplet
Unused-classes

Virtual Classes Not Yet Really Implemented and Used
dgeMatrix-class

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

Triangular, (compressed) sparse column matrices
dtRMatrix-class

Triangular Sparse Compressed Row Matrices
image-methods

Methods for image() in Package 'Matrix'
formatSparseM

Formatting Sparse Numeric Matrices Utilities
ldiMatrix-class

Class "ldiMatrix" of Diagonal Logical Matrices
lgeMatrix-class

Class "lgeMatrix" of General Dense Logical Matrices
expm

Matrix Exponential
index-class

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

Inverse Permutation Vector
lsparseMatrix-classes

Sparse logical matrices
ndenseMatrix-class

Virtual Class "ndenseMatrix" of Dense Logical Matrices
nearPD

Nearest Positive Definite Matrix
number-class

Class "number" of Possibly Complex Numbers
pMatrix-class

Permutation matrices
lsyMatrix-class

Symmetric Dense Logical Matrices
ngeMatrix-class

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

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

Symmetric Dense Nonzero-Pattern Matrices
bandSparse

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

Inverse from Choleski or QR Decomposition -- Matrix Methods
colSums

Form Row and Column Sums and Means
indMatrix-class

Index Matrices
norm

Matrix Norms
nsparseMatrix-classes

Sparse "pattern" Matrices
sparse.model.matrix

Construct Sparse Design / Model Matrices
band

Extract bands of a matrix
updown

Up- and Down-Dating a Cholesky Decomposition
externalFormats

Read and write external matrix formats
facmul

Multiplication by Decomposition Factors
isSymmetric-methods

Methods for Function isSymmetric in Package 'Matrix'
isTriangular

isTriangular() and isDiagonal() Methods
rankMatrix

Rank of a Matrix
ntrMatrix-class

Triangular Dense Logical Matrices
sparseQR-class

Sparse QR decomposition of a sparse matrix
sparseVector-class

Sparse Vector Classes
symmpart

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

Class "ddiMatrix" of Diagonal Numeric Matrices
denseMatrix-class

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

Class "generalMatrix" of General Matrices
graph-sparseMatrix

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

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

Are the Dimnames dn NULL-like ?
sparseLU-class

Sparse LU decomposition of a square sparse matrix
sparseVector

Sparse Vector Construction from Nonzero Entries
symmetricMatrix-class

Virtual Class of Symmetric Matrices in Package Matrix
triangularMatrix-class

Virtual Class of Triangular Matrices in Package Matrix
ltrMatrix-class

Triangular Dense Logical Matrices
lu

(Generalized) Triangular Decomposition of a Matrix
rep2abI

Replicate Vectors into 'abIndex' Result
replValue-class

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

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

Random Sparse Matrix
uniqTsparse

Unique (Sorted) TsparseMatrix Representations
rcond

Estimate the Reciprocal Condition Number
sparseMatrix-class

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

General Sparse Matrix Construction from Nonzero Entries
unpack

Representation of Packed and Unpacked (Dense) Matrices