Learn R Programming

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

Matrix (version 1.2-1)

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

155,110

Version

1.2-1

License

GPL (>= 2)

Maintainer

Martin Maechler

Last Published

June 1st, 2015

Functions in Matrix (1.2-1)

Cholesky

Cholesky Decomposition of a Sparse Matrix
dsRMatrix-class

Symmetric Sparse Compressed Row Matrices
dgeMatrix-class

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

Class "generalMatrix" of General Matrices
SparseM-conversions

Sparse Matrix Coercion from and to those from package "SparseM"
sparseMatrix-class

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

Rank of a Matrix
KhatriRao

Khatri-Rao Matrix Product
sparseVector-class

Sparse Vector Classes
TsparseMatrix-class

Class "TsparseMatrix" of Sparse Matrices in Triplet Form
abIseq

Sequence Generation of "abIndex", Abstract Index Vectors
bandSparse

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

Triangular, dense, numeric matrices
kronecker-methods

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

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

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

Matrix Norms
sparseQR-class

Sparse QR decomposition of a sparse matrix
nsparseMatrix-classes

Sparse "pattern" Matrices
cBind

Versions of 'cbind' and 'rbind' recursively built on cbind2/rbind2
Unused-classes

Virtual Classes Not Yet Really Implemented and Used
diagU2N

Transform Triangular Matrices from Unit Triangular to General Triangular and Back
%&%-methods

Boolean Arithmetic Matrix Products: %&% and Methods
CAex

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

Symmetric Dense Numeric Matrices
matrix-products

Matrix (Cross) Products (of Transpose)
nnzero

The Number of Non-Zero Values of a Matrix
printSpMatrix

Format and Print Sparse Matrices Flexibly
dgTMatrix-class

Sparse matrices in triplet form
Schur

Schur Decomposition of a Matrix
dMatrix-class

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

Permutation matrices
rcond

Estimate the Reciprocal Condition Number
Hilbert

Generate a Hilbert matrix
CsparseMatrix-class

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

Virtual Class "ddenseMatrix" of Numeric Dense Matrices
uniqTsparse

Unique TsparseMatrix Representations
qr-methods

QR Decomposition -- S4 Methods and Generic
formatSparseM

Formatting Sparse Numeric Matrices Utilities
symmpart

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

USCounties Contiguity Matrix
denseMatrix-class

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

Virtual Class "atomicVector" of Atomic Vectors
isSymmetric-methods

Methods for Function isSymmetric in Package 'Matrix'
unpack

Representation of Packed and Unpacked (Dense) Matrices
drop0

Drop "Explicit Zeroes" from a Sparse Matrix
chol

Choleski Decomposition - 'Matrix' S4 Generic and Methods
forceSymmetric

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

Class "Schur" of Schur Matrix Factorizations
MatrixFactorization-class

Class "MatrixFactorization" of Matrix Factorizations
all.equal-methods

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

Class "abIndex" of Abstract Index Vectors
LU-class

LU (dense) Matrix Decompositions
ngeMatrix-class

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

Sparse Compressed, Row-oriented Numeric Matrices
KNex

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

"Matrix" Methods for Functions all() and any()
lsparseMatrix-classes

Sparse logical matrices
nMatrix-class

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

Compressed, sparse, column-oriented numeric matrices
is.na-methods

is.na(), is.{in}finite() Methods for 'Matrix' Objects
rleDiff-class

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

Create Diagonal Matrix Object
number-class

Class "number" of Possibly Complex Numbers
sparse.model.matrix

Construct Sparse Design / Model Matrices
sparseLU-class

Sparse LU decomposition of a square sparse matrix
solve-methods

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

Triangular Dense Logical Matrices
replValue-class

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

Class "RsparseMatrix" of Sparse Matrices in Column-compressed Form
[-methods

Methods for "[": Extraction or Subsetting in Package 'Matrix'
compMatrix-class

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

Class "ddiMatrix" of Diagonal Numeric Matrices
expm

Matrix Exponential
triangularMatrix-class

Virtual Class of Triangular Matrices in Package Matrix
image-methods

Methods for image() in Package 'Matrix'
facmul

Multiplication by Decomposition Factors
diagonalMatrix-class

Class "diagonalMatrix" of Diagonal Matrices
Matrix-class

Virtual Class "Matrix" Class of Matrices
indMatrix-class

Index Matrices
lu

(Generalized) Triangular Decomposition of a Matrix
dtpMatrix-class

Packed Triangular Dense Matrices - "dtpMatrix"
externalFormats

Read and write external matrix formats
lgeMatrix-class

Class "lgeMatrix" of General Dense Logical Matrices
is.null.DN

Are the Dimnames dn NULL-like ?
ldiMatrix-class

Class "ldiMatrix" of Diagonal Logical Matrices
ltrMatrix-class

Triangular Dense Logical Matrices
spMatrix

Sparse Matrix Constructor From Triplet
expand

Expand a Decomposition into Factors
nearPD

Nearest Positive Definite Matrix
symmetricMatrix-class

Virtual Class of Symmetric Matrices in Package Matrix
nsyMatrix-class

Symmetric Dense Nonzero-Pattern Matrices
updown

Up- and Down-Dating a Cholesky Decomposition
Matrix

Construct a Classed Matrix
[<--methods

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

Virtual Class "dsparseMatrix" of Numeric Sparse Matrices
condest

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

Numeric Symmetric Sparse (column compressed) Matrices
chol2inv-methods

Inverse from Choleski or QR Decomposition -- Matrix Methods
ldenseMatrix-class

Virtual Class "ldenseMatrix" of Dense Logical Matrices
rsparsematrix

Random Sparse Matrix
dtCMatrix-class

Triangular, (compressed) sparse column matrices
ndenseMatrix-class

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

Positive Semi-definite Dense Numeric Matrices
invPerm

Inverse Permutation Vector
sparseVector

Sparse Vector Construction from Nonzero Entries
Cholesky-class

Cholesky and Bunch-Kaufman Decompositions
BunchKaufman-methods

Bunch-Kaufman Decomposition Methods
band

Extract bands of a matrix
bdiag

Construct a Block Diagonal Matrix
lsyMatrix-class

Symmetric Dense Logical Matrices
rep2abI

Replicate Vectors into 'abIndex' Result
CHMfactor-class

CHOLMOD-based Cholesky Factorizations
colSums

Form Row and Column Sums and Means
isTriangular

isTriangular() and isDiagonal() Methods
sparseMatrix

General Sparse Matrix Construction from Nonzero Entries