Learn R Programming

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

Matrix (version 0.995-20)

A Matrix package for R

Description

Classes and methods for numerical linear algebra using Lapack, LDL, and Metis.

Copy Link

Version

Install

install.packages('Matrix')

Monthly Downloads

118,373

Version

0.995-20

License

GPL version 2 or later. This R package includes code from the Metis package and from NIST. This code is covered by separate copyrights; see the file Copyrights for details. This R package includes code from the University of Florida sparse matrix library maintained by Tim Davis. All sections of that code are covered by the GPL or LGPL licenses. See the directory doc/UFsparse for details.

Maintainer

Douglas Bates

Last Published

March 11th, 2025

Functions in Matrix (0.995-20)

dtpMatrix-class

Packed triangular dense matrices
pedigree

Pedigree Constructor
lmer-class

Mixed Model Representations and *mer Methods
CAex

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

Class "MatrixFactorization" of Matrix Factorizations
dgeMatrix-class

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

Triangular, (compressed) sparse column matrices
Cholesky

Cholesky Decomposition of a Sparse Matrix
generalMatrix-class

Class "generalMatrix" of General Matrices
triangularMatrix-class

Virtual Class of Triangular Matrices in package:Matrix
Cholesky-class

Cholesky and Bunch-Kaufman Decompositions
symmetricMatrix-class

Virtual Class of Symmetric Matrices in package:Matrix
dtrMatrix-class

Triangular, dense, numeric matrices
sparseLU-class

Sparse LU decomposition of a square sparse matrix
lmer

Fit (Generalized) Linear Mixed-Effects Models
unpack

Full Storage Representation of Packed Matrices
TsparseMatrix-class

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

Virtual Class "Matrix" Class of Matrices
lgeMatrix-class

Class "lgeMatrix" of General Dense Logical Matrices
norm

Norm of a Matrix
dMatrix-class

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

Matrix exponential
Matrix

Construct a Classed Matrix
rcond

Estimate the Reciprocal Condition Number
KNex

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

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

Class "diagonalMatrix" of Diagonal Matrices
fixef

Extract Fixed Effects
index-class

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

Virtual Class "ldenseMatrix" of Dense Logical Matrices
expand

Expand a Decomposition into Factors
[<--methods

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

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

CHOLMOD-based Cholesky factorizations
Diagonal

Create Diagonal Matrix Object
externalFormats

Read and write external matrix formats
dgRMatrix-class

Compressed, sparse, row-oriented numeric matrices
hatTrace

Extract the trace of the `hat' matrix
band

Extract bands of a matrix
mcmcsamp

Generate an MCMC sample
ranef

Extract Random Effects
Hilbert

Generate a Hilbert matrix
facmul

Multiplication by Decomposition Factors
Unused-classes

Virtual Classes Not Yet Used
VarCorr-class

Class "VarCorr"
RsparseMatrix-class

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

Cholesky Decompositions of dsCMatrix Objects
qr-methods

Methods for the qr generic
sleepstudy

Reaction times in a sleep deprivation study
replValue-class

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

Symmetric Dense Logical Matrices
BIC

Bayesian Information Criterion
SparseM-conversions

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

Symmetric Dense Numeric Matrices
tcrossprod

Cross-product of transpose
denseMatrix-class

Virtual Class "denseMatrix" of All Dense Matrices
VarCorr

Extract variance and correlation components
isSymmetric-methods

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

Symmetric Sparse Compressed Row Matrices
sparseQR-class

Sparse QR decomposition of a sparse matrix
pedigree-class

Class "pedigree"
dgTMatrix-class

Sparse matrices in triplet form
ldiMatrix-class

Class "ldiMatrix" of Diagonal Logical Matrices
[-methods

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

Class "ddiMatrix" of Diagonal Numeric Matrices
dsparseMatrix-class

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

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

Schur Decomposition of a Matrix
dsCMatrix-class

Numeric Symmetric Sparse (column compressed) Matrices
lsparseMatrix-classes

Sparse logical matrices
lu

Triangular Decomposition of a Square Matrix
ltrMatrix-class

Triangular Dense Logical Matrices
ddenseMatrix-class

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

Positive Semi-definite Dense Numeric Matrices
dgCMatrix-class

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

LU (dense) Matrix Decompositions
pMatrix-class

Permutation matrices