Learn R Programming

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

Matrix (version 1.0-9)

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.0-9

License

GPL (>= 2)

Maintainer

Martin Maechler

Last Published

September 5th, 2012

Functions in Matrix (1.0-9)

Diagonal

Create Diagonal Matrix Object
bandSparse

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

Formatting Sparse Numeric Matrices Utilities
norm

Matrix Norms
Matrix-class

Virtual Class "Matrix" Class of Matrices
CHMfactor-class

CHOLMOD-based Cholesky Factorizations
colSums

Form Row and Column Sums and Means
dtCMatrix-class

Triangular, (compressed) sparse column matrices
dtpMatrix-class

Packed triangular dense matrices
Cholesky-class

Cholesky and Bunch-Kaufman Decompositions
expand

Expand a Decomposition into Factors
index-class

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

Class "abIndex" of Abstract Index Vectors
ddiMatrix-class

Class "ddiMatrix" of Diagonal Numeric Matrices
nearPD

Nearest Positive Definite Matrix
spMatrix

Sparse Matrix Constructor From Triplet
[<--methods

Methods for "[<-" - Assigning to Subsets for 'Matrix'
CAex

Albers' example Matrix with "Difficult" Eigen Factorization
sparseMatrix

General Sparse Matrix Construction from Nonzero Entries
sparseLU-class

Sparse LU decomposition of a square sparse matrix
diagU2N

Transform Triangular Matrices from Unit Triangular to General and back
dsCMatrix-class

Numeric Symmetric Sparse (column compressed) Matrices
lgeMatrix-class

Class "lgeMatrix" of General Dense Logical Matrices
all.equal-methods

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

Positive Semi-definite Dense Numeric Matrices
KNex

Koenker-Ng Example Sparse Model Matrix and Response Vector
sparseVector-class

Sparse Vector Classes
condest

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

Force a Matrix to 'symmetricMatrix' Without Symmetry Checks
sparse.model.matrix

Construct Sparse Design / Model Matrices
kronecker-methods

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

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

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

Triangular Dense Logical Matrices
Hilbert

Generate a Hilbert matrix
ddenseMatrix-class

Virtual Class "ddenseMatrix" of Numeric Dense Matrices
chol

Choleski Decomposition - 'Matrix' S4 Generic
dgRMatrix-class

Sparse Compressed, Row-oriented Numeric Matrices
TsparseMatrix-class

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

Virtual Class "atomicVector" of Atomic Vectors
diagonalMatrix-class

Class "diagonalMatrix" of Diagonal Matrices
dsyMatrix-class

Symmetric Dense Numeric Matrices
dsparseMatrix-class

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

Class "generalMatrix" of General Matrices
is.na-methods

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

Compressed, sparse, column-oriented numeric matrices
rep2abI

Replicate Vectors into 'abIndex' Result
sparseMatrix-class

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

Class "ldiMatrix" of Diagonal Logical Matrices
tcrossprod

Cross-product of transpose
nsparseMatrix-classes

Sparse "pattern" Matrices
dgTMatrix-class

Sparse matrices in triplet form
MatrixFactorization-class

Class "MatrixFactorization" of Matrix Factorizations
replValue-class

Virtual Class "replValue" - Simple Class for subassignment Values
symmpart

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

Class "Schur" of Schur Matrix Factorizations
nnzero

The Number of Non-Zero Values of a Matrix
updown

Up- and Down-Dating a Cholesky Decomposition
dtrMatrix-class

Triangular, dense, numeric matrices
nMatrix-class

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

LU (dense) Matrix Decompositions
USCounties

USCounties Contiguity Matrix
lsparseMatrix-classes

Sparse logical matrices
bdiag

Construct a Block Diagonal Matrix
symmetricMatrix-class

Virtual Class of Symmetric Matrices in package:Matrix
cBind

Versions of 'cbind' and 'rbind' recursively built on cbind2/rbind2
denseMatrix-class

Virtual Class "denseMatrix" of All Dense Matrices
Cholesky

Cholesky Decomposition of a Sparse Matrix
Matrix

Construct a Classed Matrix
dsRMatrix-class

Symmetric Sparse Compressed Row Matrices
band

Extract bands of a matrix
RsparseMatrix-class

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

Class "number" of Possibly Complex Numbers
[-methods

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

Virtual Class of Triangular Matrices in package:Matrix
Unused-classes

Virtual Classes Not Yet Really Implemented and Used
abIseq

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

QR Decomposition -- S4 Methods and Generic
sparseQR-class

Sparse QR decomposition of a sparse matrix
printSpMatrix

Format and Print Sparse Matrices Flexibly
facmul

Multiplication by Decomposition Factors
ltrMatrix-class

Triangular Dense Logical Matrices
sparseVector

Sparse Vector Construction from Nonzero Entries
dgeMatrix-class

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

Schur Decomposition of a Matrix
compMatrix-class

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

Symmetric Dense Nonzero-Pattern Matrices
CsparseMatrix-class

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

Permutation matrices
image-methods

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

(Virtual) Class "dMatrix" of "double" Matrices
rcond

Estimate the Reciprocal Condition Number
expm

Matrix Exponential
rleDiff-class

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

Bunch-Kaufman Decomposition Methods
chol2inv-methods

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

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

Drop "Explicit Zeroes" from a Sparse Matrix
externalFormats

Read and write external matrix formats
rankMatrix

Rank of a Matrix
SparseM-conversions

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

Symmetric Dense Logical Matrices
lu

(Generalized) Triangular Decomposition of a Matrix
isSymmetric-methods

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

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

Representation of Packed and Unpacked (Dense) Matrices