MATRIX SPL Directory

 

The Matrix directory contains functions useful in matrix math and matrix manipulations. The following functions are included:

 

COLNOS

Returns an array of column numbers.

COND

Calculates the condition number of a matrix.

EIG

Computes the Eigenvalues and Eigenvectors of a square matrix.

FLIPLR

Flips the columns of an array.

FLIPUD

Flips the rows of an array

FUNM

Calculates the general matrix function

KRON

Kronecker tensor product of two arrays

LOGM

Calculates the matrix logarithm

LOTRI

Returns the lower triangle of a matrix, including the main diagonal.

LOTRIX

Returns the lower triangle of a matrix, excluding the main diagonal.

NORM

Calculates the norm of a series or array.

NULL

Computes an orthogonal basis for the Null space of an array.

ORTH

Computes an orthonormal basis of an array using SVD.

PINV

Calculates the pseudo inverse of a matrix using SVD.

QR

Calculates the QR decomposition of a matrix.

RANK

Estimates the number of independent rows or columns of an array.

REPMAT

Replicates the rows and columns of an array.

ROWNOS

Returns an array of row numbers.

SQRTM

Calculates the matrix square root

TRACE

Calculates the trace of an array, the sum of the diagonal elements.

TRIL

Lower triangle below a specified diagonal.

TRIU

Upper triangle above a specified diagonal.

UPTRI

Returns the upper triangle of a matrix, including the main diagonal.

UPTRIX

Returns the upper triangle of a matrix, excluding the main diagonal.