Learn R Programming

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

matrixcalc (version 1.0-4)

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

8,738

Version

1.0-4

License

GPL (>= 2)

Maintainer

Tom Kelly

Last Published

June 3rd, 2021

Functions in matrixcalc (1.0-4)

direct.sum

Direct sum of two arrays
D.matrix

Duplication matrix
inf.norm

Compute the infinitity norm of a matrix
E.matrices

List of E Matrices
is.singular.matrix

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

Test matrix for positive semi-definiteness
is.diagonal.matrix

Test for diagonal square matrix
%s%

Direct sum of two arrays
set.submatrix

Store matrix inside another matrix
one.norm

Compute the one norm of a matrix
N.matrix

Construct N Matrix
vandermonde.matrix

Vandermonde matrix
upper.triangle

Upper triangle portion of a matrix
hankel.matrix

Hankel Matrix
svd.inverse

SVD Inverse of a square matrix
is.indefinite

Test matrix for positive indefiniteness
is.idempotent.matrix

Test for idempotent square matrix
pascal.matrix

Pascal matrix
hadamard.prod

Hadamard product of two matrices
creation.matrix

Creation Matrix
symmetric.pascal.matrix

Symmetric Pascal matrix
direct.prod

Direct prod of two arrays
is.symmetric.matrix

Test for symmetric numeric matrix
is.non.singular.matrix

Test if matrix is non-singular
frobenius.matrix

Frobenius Matrix
is.skew.symmetric.matrix

Test for a skew-symmetric matrix
fibonacci.matrix

Fibonacci Matrix
T.matrices

List of T Matrices
is.positive.definite

Test matrix for positive definiteness
lower.triangle

Lower triangle portion of a matrix
H.matrices

List of H Matrices
commutation.matrix

Commutation matrix for r by c numeric matrices
K.matrix

K Matrix
shift.right

Shift matrix n columns to the right
shift.up

Shift matrix m rows up
vec

Vectorize a matrix
is.square.matrix

Test for square matrix
hilbert.schmidt.norm

Compute the Hilbert-Schmidt norm of a matrix
elimination.matrix

Elimination matrix for lower triangular matrices
hilbert.matrix

Hilbert matrices
vech

Vectorize a matrix
matrix.power

Matrix Raised to a Power
entrywise.norm

Compute the entrywise norm of a matrix
spectral.norm

Spectral norm of matrix
frobenius.norm

Compute the Frobenius norm of a matrix
frobenius.prod

Frobenius innter product of matrices
stirling.matrix

Stirling Matrix
matrix.trace

The trace of a matrix
matrix.inverse

Inverse of a square matrix
is.negative.semi.definite

Test matrix for negative semi definiteness
lu.decomposition

LU Decomposition of Square Matrix
is.negative.definite

Test matrix for negative definiteness
maximum.norm

Maximum norm of matrix
toeplitz.matrix

Toeplitz Matrix
matrix.rank

Rank of a square matrix
shift.down

Shift matrix m rows down
shift.left

Shift a matrix n columns to the left
u.vectors

u vectors of an identity matrix
L.matrix

Construct L Matrix
duplication.matrix

Duplication matrix for n by n matrices