DynamicMatrix
Represents a matrix of doubles with dynamic (runtime-checked) dimensions. Internally represented as a SimpleMatrix from EJML.
Inheritors
Constructors
Constructor to create a DynamicMatrix from a 2D array.
Constructor to create a DynamicMatrix from a list of lists.
Properties
The inverse of this matrix. The matrix must be square and invertible. If the matrix is not square, use pseudoInverse instead.
The number of columns in the matrix.
The pseudo-inverse of this matrix. The matrix must be square and invertible.
The transpose of this matrix.
Functions
Returns the nth column of the matrix.
Returns a copy of this matrix.
Returns the diagonal elements of this matrix.
Divides this matrix by a scalar.
Computes the matrix exponential of this matrix, using the Padé approximant.
Returns the LDLT decomposition of this matrix. Only works for symmetric matrices.
Returns the LLT (Cholesky) decomposition of this matrix. Only works for symmetric, positive-definite matrices. Provides in-place rank-1 update/downdate methods.
Returns the LU decomposition of this matrix.
Subtracts another matrix from this matrix. The matrices must have the same dimensions.
Adds another matrix to this matrix. The matrices must have the same dimensions.
Returns the QR decomposition of this matrix.
Returns the nth row of the matrix.
Multiplies this matrix by another matrix. The number of columns in this matrix must match the number of rows in the other matrix.
Multiplies this matrix by a scalar.
Returns the matrix with all elements negated. This is equivalent to multiplying the matrix by -1.