Learn R Programming

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

Matrix (version 1.2-5)

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

118,373

Version

1.2-5

License

GPL (>= 2) | file LICENCE

Maintainer

Martin Maechler

Last Published

April 17th, 2016

Functions in Matrix (1.2-5)

bdiag

Construct a Block Diagonal Matrix
[<--methods

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

Compressed, sparse, column-oriented numeric matrices
Matrix

Construct a Classed Matrix
KhatriRao

Khatri-Rao Matrix Product
MatrixClass

The Matrix (Super-) Class of a Class
TsparseMatrix-class

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

Class "abIndex" of Abstract Index Vectors
RsparseMatrix-class

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

Schur Decomposition of a Matrix
abIseq

Sequence Generation of "abIndex", Abstract Index Vectors
Cholesky

Cholesky Decomposition of a Sparse Matrix
BunchKaufman-methods

Bunch-Kaufman Decomposition Methods
dpoMatrix-class

Positive Semi-definite Dense Numeric Matrices
kronecker-methods

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

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

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

Class "ddiMatrix" of Diagonal Numeric Matrices
CAex

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

LU (dense) Matrix Decompositions
rep2abI

Replicate Vectors into 'abIndex' Result
condest

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

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

Cholesky and Bunch-Kaufman Decompositions
band

Extract bands of a matrix
Schur-class

Class "Schur" of Schur Matrix Factorizations
atomicVector-class

Virtual Class "atomicVector" of Atomic Vectors
denseMatrix-class

Virtual Class "denseMatrix" of All Dense Matrices
invPerm

Inverse Permutation Vector
Diagonal

Create Diagonal Matrix Object
chol2inv-methods

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

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

Triangular Dense Logical Matrices
index-class

Virtual Class "index" - Simple Class for Matrix Indices
nsparseMatrix-classes

Sparse "pattern" Matrices
is.na-methods

is.na(), is.{in}finite() Methods for 'Matrix' Objects
printSpMatrix

Format and Print Sparse Matrices Flexibly
ldiMatrix-class

Class "ldiMatrix" of Diagonal Logical Matrices
dtRMatrix-class

Triangular Sparse Compressed Row Matrices
rcond

Estimate the Reciprocal Condition Number
Matrix-class

Virtual Class "Matrix" Class of Matrices
CHMfactor-class

CHOLMOD-based Cholesky Factorizations
MatrixFactorization-class

Class "MatrixFactorization" of Matrix Factorizations
SparseM-conversions

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

Virtual Class of Symmetric Matrices in Package Matrix
ngeMatrix-class

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

USCounties Contiguity Matrix
isSymmetric-methods

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

Index Matrices
sparseMatrix-class

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

Sparse Compressed, Row-oriented Numeric Matrices
lsparseMatrix-classes

Sparse logical matrices
[-methods

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

Random Sparse Matrix
nearPD

Nearest Positive Definite Matrix
compMatrix-class

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

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

Sparse matrices in triplet form
forceSymmetric

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

Triangular, (compressed) sparse column matrices
bandSparse

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

Class "rleDiff" of rle(diff(.)) Stored Vectors
nsyMatrix-class

Symmetric Dense Nonzero-Pattern Matrices
ltrMatrix-class

Triangular Dense Logical Matrices
expand

Expand a Decomposition into Factors
diagonalMatrix-class

Class "diagonalMatrix" of Diagonal Matrices
dsRMatrix-class

Symmetric Sparse Compressed Row Matrices
nMatrix-class

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

Class "lgeMatrix" of General Dense Logical Matrices
rankMatrix

Rank of a Matrix
dgeMatrix-class

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

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

Sparse Matrix Constructor From Triplet
solve-methods

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

Sparse LU decomposition of a square sparse matrix
cBind

Versions of 'cbind' and 'rbind' recursively built on cbind2/rbind2
is.null.DN

Are the Dimnames dn NULL-like ?
Hilbert

Generate a Hilbert matrix
CsparseMatrix-class

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

(Generalized) Triangular Decomposition of a Matrix
dsparseMatrix-class

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

Class "number" of Possibly Complex Numbers
facmul

Multiplication by Decomposition Factors
sparse.model.matrix

Construct Sparse Design / Model Matrices
replValue-class

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

Sparse Vector Classes
KNex

Koenker-Ng Example Sparse Model Matrix and Response Vector
isTriangular

isTriangular() and isDiagonal() Methods
generalMatrix-class

Class "generalMatrix" of General Matrices
Unused-classes

Virtual Classes Not Yet Really Implemented and Used
dtpMatrix-class

Packed Triangular Dense Matrices - "dtpMatrix"
formatSparseM

Formatting Sparse Numeric Matrices Utilities
externalFormats

Read and write external matrix formats
unpack

Representation of Packed and Unpacked (Dense) Matrices
sparseQR-class

Sparse QR decomposition of a sparse matrix
graph-sparseMatrix

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

Symmetric Dense Numeric Matrices
qr-methods

QR Decomposition -- S4 Methods and Generic
pMatrix-class

Permutation matrices
sparseMatrix

General Sparse Matrix Construction from Nonzero Entries
sparseVector

Sparse Vector Construction from Nonzero Entries
ldenseMatrix-class

Virtual Class "ldenseMatrix" of Dense Logical Matrices
updown

Up- and Down-Dating a Cholesky Decomposition
nnzero

The Number of Non-Zero Values of a Matrix
uniqTsparse

Unique TsparseMatrix Representations
ndenseMatrix-class

Virtual Class "ndenseMatrix" of Dense Logical Matrices
diagU2N

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

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

Numeric Symmetric Sparse (column compressed) Matrices
triangularMatrix-class

Virtual Class of Triangular Matrices in Package Matrix
%&%-methods

Boolean Arithmetic Matrix Products: %&% and Methods
drop0

Drop "Explicit Zeroes" from a Sparse Matrix
matrix-products

Matrix (Cross) Products (of Transpose)
norm

Matrix Norms
expm

Matrix Exponential
lsyMatrix-class

Symmetric Dense Logical Matrices
colSums

Form Row and Column Sums and Means