Learn R Programming

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

Matrix (version 1.2-8)

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

107,780

Version

1.2-8

License

GPL (>= 2) | file LICENCE

Maintainer

Last Published

January 20th, 2017

Functions in Matrix (1.2-8)

bdiag

Construct a Block Diagonal Matrix
Cholesky

Cholesky Decomposition of a Sparse Matrix
CAex

Albers' example Matrix with "Difficult" Eigen Factorization
chol

Choleski Decomposition - 'Matrix' S4 Generic and Methods
colSums

Form Row and Column Sums and Means
CHMfactor-class

CHOLMOD-based Cholesky Factorizations
Cholesky-class

Cholesky and Bunch-Kaufman Decompositions
compMatrix-class

Class "compMatrix" of Composite (Factorizable) Matrices
cBind

Versions of 'cbind' and 'rbind' recursively built on cbind2/rbind2
chol2inv-methods

Inverse from Choleski or QR Decomposition -- Matrix Methods
condest

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

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

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

Sparse Compressed, Row-oriented Numeric Matrices
Diagonal

Create Diagonal Matrix Object
ddiMatrix-class

Class "ddiMatrix" of Diagonal Numeric Matrices
diagonalMatrix-class

Class "diagonalMatrix" of Diagonal Matrices
denseMatrix-class

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

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

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

Sparse matrices in triplet form
diagU2N

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

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

Packed Triangular Dense Matrices - "dtpMatrix"
dsRMatrix-class

Symmetric Sparse Compressed Row Matrices
dpoMatrix-class

Positive Semi-definite Dense Numeric Matrices
dsparseMatrix-class

Virtual Class "dsparseMatrix" of Numeric Sparse Matrices
drop0

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

Triangular, (compressed) sparse column matrices
dsyMatrix-class

Symmetric Dense Numeric Matrices
dtRMatrix-class

Triangular Sparse Compressed Row Matrices
dsCMatrix-class

Numeric Symmetric Sparse (column compressed) Matrices
formatSparseM

Formatting Sparse Numeric Matrices Utilities
expand

Expand a Decomposition into Factors
externalFormats

Read and write external matrix formats
facmul

Multiplication by Decomposition Factors
forceSymmetric

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

Class "generalMatrix" of General Matrices
graph-sparseMatrix

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

Generate a Hilbert matrix
is.na-methods

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

Are the Dimnames dn NULL-like ?
index-class

Virtual Class "index" - Simple Class for Matrix Indices
image-methods

Methods for image() in Package 'Matrix'
isTriangular

isTriangular() and isDiagonal() Methods
isSymmetric-methods

Methods for Function isSymmetric in Package 'Matrix'
KhatriRao

Khatri-Rao Matrix Product
indMatrix-class

Index Matrices
KNex

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

Class "MatrixFactorization" of Matrix Factorizations
Matrix-class

Virtual Class "Matrix" Class of Matrices
invPerm

Inverse Permutation Vector
matrix-products

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

Virtual Class "ndenseMatrix" of Dense Logical Matrices
norm

Matrix Norms
sparseQR-class

Sparse QR decomposition of a sparse matrix
nsparseMatrix-classes

Sparse "pattern" Matrices
sparseVector-class

Sparse Vector Classes
kronecker-methods

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

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

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

Nearest Positive Definite Matrix
number-class

Class "number" of Possibly Complex Numbers
Schur

Schur Decomposition of a Matrix
pMatrix-class

Permutation matrices
sparse.model.matrix

Construct Sparse Design / Model Matrices
spMatrix

Sparse Matrix Constructor From Triplet
sparseVector

Sparse Vector Construction from Nonzero Entries
ltrMatrix-class

Triangular Dense Logical Matrices
LU-class

LU (dense) Matrix Decompositions
replValue-class

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

Replicate Vectors into 'abIndex' Result
Schur-class

Class "Schur" of Schur Matrix Factorizations
rsparsematrix

Random Sparse Matrix
all-methods

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

Virtual Classes Not Yet Really Implemented and Used
unpack

Representation of Packed and Unpacked (Dense) Matrices
updown

Up- and Down-Dating a Cholesky Decomposition
all.equal-methods

Matrix Package Methods for Function all.equal()
USCounties

USCounties Contiguity Matrix
band

Extract bands of a matrix
atomicVector-class

Virtual Class "atomicVector" of Atomic Vectors
ldiMatrix-class

Class "ldiMatrix" of Diagonal Logical Matrices
nMatrix-class

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

Class "lgeMatrix" of General Dense Logical Matrices
nnzero

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

Triangular Dense Logical Matrices
nsyMatrix-class

Symmetric Dense Nonzero-Pattern Matrices
TsparseMatrix-class

Class "TsparseMatrix" of Sparse Matrices in Triplet Form
%&%-methods

Boolean Arithmetic Matrix Products: %&% and Methods
[-methods

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

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

Bunch-Kaufman Decomposition Methods
lsparseMatrix-classes

Sparse logical matrices
lsyMatrix-class

Symmetric Dense Logical Matrices
MatrixClass

The Matrix (Super-) Class of a Class
Matrix

Construct a Classed Matrix
rankMatrix

Rank of a Matrix
rcond

Estimate the Reciprocal Condition Number
rleDiff-class

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

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

Unique (Sorted) TsparseMatrix Representations
[<--methods

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

Virtual Class of Symmetric Matrices in Package Matrix
abIndex-class

Class "abIndex" of Abstract Index Vectors
abIseq

Sequence Generation of "abIndex", Abstract Index Vectors
printSpMatrix

Format and Print Sparse Matrices Flexibly
sparseMatrix-class

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

QR Decomposition -- S4 Methods and Generic
symmpart

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

General Sparse Matrix Construction from Nonzero Entries
triangularMatrix-class

Virtual Class of Triangular Matrices in Package Matrix