Learn R Programming

fastmatrix (version 0.6-4)

Fast Computation of some Matrices Useful in Statistics

Description

Small set of functions designed to speed up the computation of certain matrix operations that are commonly used in statistics and econometrics. It provides efficient implementations for the computation of several structured matrices, matrix decompositions and statistical procedures, many of which have minimal memory overhead. Furthermore, the package provides interfaces to C code callable by another C code from other R packages.

Copy Link

Version

Install

install.packages('fastmatrix')

Monthly Downloads

5,247

Version

0.6-4

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Felipe Osorio

Last Published

October 23rd, 2025

Functions in fastmatrix (0.6-4)

cov.weighted

Weighted covariance matrices
comm.info

Compact information to construct the commutation matrix
duplication

Duplication matrix
dupl.cross

Matrix crossproduct envolving the duplication matrix
matrix.fun

Evaluate a matrix function
jacobi

Solve linear systems using the Jacobi method
ldl

The LDL decomposition
helmert

Helmert matrix
lu-methods

Reconstruct the L, U, or X matrices from an LU object
mardia.test

Mardia test for multivariate normality
minkowski

Computes the p-norm of a vector
is.lower.tri

Check if a matrix is lower or upper triangular
moments

Central moments
ols

Fit linear regression model
power.method

Power method to approximate dominant eigenvalue and eigenvector
ols.fit

Fitter functions for linear models
equilibrate

Equilibration of a rectangular or symmetric matrix
lu

The LU factorization of a square matrix
harris.test

Test for variance homogeneity of correlated variables
hadamard

Hadamard product of two matrices
hankel

Form a symmetric Hankel matrix
comm.prod

Matrix multiplication envolving the commutation matrix
matrix.inner

Compute the inner product between two rectangular matrices
ols.fit-methods

Fit a linear model
lu2inv

Inverse from LU factorization
sherman.morrison

Sherman-Morrison formula
seidel

Solve linear systems using the Gauss-Seidel method
matrix.norm

Compute the norm of a rectangular matrix
whitening

Whitening transformation
scaled.condition

Scaled condition number
schur

The Schur decomposition of a square matrix
mediancenter

Mediancenter
kurtosis

Mardia's multivariate skewness and kurtosis coefficients
krylov

Computes a Krylov matrix
mchol

The modified Cholesky factorization
vech

Vectorization the lower triangular part of a square matrix
kronecker.prod

Kronecker product on matrices
fastmatrix-package

tools:::Rd_package_title("fastmatrix")
JarqueBera.test

Jarque-Bera test for univariate normality
ridge

Ridge regression
rball

Generation of deviates uniformly distributed in a unitary ball
matrix.sqrt

Matrix square root
symm.info

Compact information to construct the symmetrizer matrix
floyd

Find the shortest paths in a directed graph
matrix.polynomial

Evaluates a real general matrix polynomial
vec

Vectorization of a matrix
rmnorm

Multivariate normal random deviates
sweep.operator

Gauss-Jordan sweep operator for symmetric matrices
rsphere

Generation of deviates uniformly located on a spherical surface
symm.prod

Matrix multiplication envolving the symmetrizer matrix
symmetrizer

Symmetrizer matrix
wilson.hilferty

Wilson-Hilferty transformation
Mahalanobis

Mahalanobis distance
array.mult

Array multiplication
WH.normal

Wilson-Hilferty transformation for chi-squared variates
dupl.prod

Matrix multiplication envolving the duplication matrix
bezier

Computation of Bezier curve
cg

Solve linear systems using the conjugate gradients method
commutation

Commutation matrix
corCS

Compound symmetry correlation structure
ccc

Lin's concordance correlation coefficient
dupl.info

Compact information to construct the duplication matrix
cov.MSSD

Mean Square Successive Difference (MSSD) estimator of the covariance matrix
bracket.prod

Bracket product
asSymmetric

Force a matrix to be symmetric
cholupdate

Rank 1 update to Cholesky factorization
circulant

Form a symmetric circulant matrix
corAR1

AR(1) correlation structure
geomean

Geometric mean
frank

Frank matrix