DynamicVector
Represents a column vector of doubles with dynamic (runtime-checked) dimensions. This is essentially a DynamicMatrix with a single column.
Constructors
Constructor to create a DynamicVector from an array of values.
Constructor to create a DynamicVector from a collection of values.
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 vector.
Returns the diagonal elements of this matrix.
Divides this matrix by a scalar.
Computes the dot product of this vector with another vector.
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.
Subtracts another vector from this vector.
Returns a normalized (unit) vector in the same direction.
Adds another matrix to this matrix. The matrices must have the same dimensions.
Adds another vector to this vector.
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 vector by a scalar.
Negates all elements of this vector.