Learn R Programming

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

matrixcalc (version 1.0-5)

Collection of Functions for Matrix Calculations

Description

A collection of functions to support matrix calculations for probability, econometric and numerical analysis. There are additional functions that are comparable to APL functions which are useful for actuarial models such as pension mathematics. This package is used for teaching and research purposes at the Department of Finance and Risk Engineering, New York University, Polytechnic Institute, Brooklyn, NY 11201. Horn, R.A. (1990) Matrix Analysis. ISBN 978-0521386326. Lancaster, P. (1969) Theory of Matrices. ISBN 978-0124355507. Lay, D.C. (1995) Linear Algebra: And Its Applications. ISBN 978-0201845563.

Copy Link

Version

Install

install.packages('matrixcalc')

Monthly Downloads

11,538

Version

1.0-5

License

GPL (>= 2)

Maintainer

S. Thomas Kelly

Last Published

July 28th, 2021

Functions in matrixcalc (1.0-5)

direct.prod

Direct prod of two arrays
inf.norm

Compute the infinitity norm of a matrix
T.matrices

List of T Matrices
is.diagonal.matrix

Test for diagonal square matrix
matrix.power

Matrix Raised to a Power
matrix.rank

Rank of a square matrix
frobenius.norm

Compute the Frobenius norm of a matrix
frobenius.prod

Frobenius innter product of matrices
commutation.matrix

Commutation matrix for r by c numeric matrices
shift.down

Shift matrix m rows down
upper.triangle

Upper triangle portion of a matrix
D.matrix

Duplication matrix
E.matrices

List of E Matrices
shift.left

Shift a matrix n columns to the left
entrywise.norm

Compute the entrywise norm of a matrix
hadamard.prod

Hadamard product of two matrices
elimination.matrix

Elimination matrix for lower triangular matrices
L.matrix

Construct L Matrix
is.negative.definite

Test matrix for negative definiteness
is.negative.semi.definite

Test matrix for negative semi definiteness
vandermonde.matrix

Vandermonde matrix
lu.decomposition

LU Decomposition of Square Matrix
matrix.trace

The trace of a matrix
svd.inverse

SVD Inverse of a square matrix
hankel.matrix

Hankel Matrix
symmetric.pascal.matrix

Symmetric Pascal matrix
maximum.norm

Maximum norm of matrix
is.indefinite

Test matrix for positive indefiniteness
is.idempotent.matrix

Test for idempotent square matrix
matrix.inverse

Inverse of a square matrix
N.matrix

Construct N Matrix
direct.sum

Direct sum of two arrays
duplication.matrix

Duplication matrix for n by n matrices
stirling.matrix

Stirling Matrix
set.submatrix

Store matrix inside another matrix
spectral.norm

Spectral norm of matrix
%s%

Direct sum of two arrays
shift.right

Shift matrix n columns to the right
toeplitz.matrix

Toeplitz Matrix
is.symmetric.matrix

Test for symmetric numeric matrix
is.positive.definite

Test matrix for positive definiteness
lower.triangle

Lower triangle portion of a matrix
shift.up

Shift matrix m rows up
is.non.singular.matrix

Test if matrix is non-singular
K.matrix

K Matrix
H.matrices

List of H Matrices
hilbert.matrix

Hilbert matrices
is.skew.symmetric.matrix

Test for a skew-symmetric matrix
one.norm

Compute the one norm of a matrix
is.singular.matrix

Test for singular square matrix
is.positive.semi.definite

Test matrix for positive semi-definiteness
hilbert.schmidt.norm

Compute the Hilbert-Schmidt norm of a matrix
is.square.matrix

Test for square matrix
vec

Vectorize a matrix
u.vectors

u vectors of an identity matrix
vech

Vectorize a matrix
pascal.matrix

Pascal matrix
creation.matrix

Creation Matrix
fibonacci.matrix

Fibonacci Matrix
frobenius.matrix

Frobenius Matrix