Type Definitions


Root

Data type holding roots of a polynomial with multiplicity.

Description

Roots are counted with multiplicity: [x, m] indicates a root of a polynomial at the (Complex or real) number x with multiplicity m. A Root can also be a simple number or Complex number, which is taken to have multiplicity equal to 1.

Details
number | Complex | Array

Pivot

A pivot position is recorded as a pair [row, column].

Details
Array.<number>

PLUData

The core data computed by Gaussian elimination.

Description

When performing Gaussian elimination on a computer, it is easy to keep track of the row operations performed, and various other data.

Properties
Name Type Description
P Array.<number>

A permutation of the numbers 1...m-1. by Matrix.permutation.

L Matrix

An mxm lower-triangular matrix with ones on the diagonal.

U Matrix

An mxn matrix in row echelon form.

E Matrix

An mxm invertible matrix equal to L^(-1)P, so EA = U.

pivots Array.<Pivot>

An array of pivot positions.

det number

The determinant of the matrix (only set for square matrices).

Details
Object

QRData

The data computed in the Gram–Schmidt algorithm.

Description

This primarily consists of an mxn matrix Q with orthogonal columns and an upper-triangular nxn matrix R such that A = QR. Also included is a list of which columns of Q are zero.

Properties
Name Type Description
Q Matrix

An mxn matrix with orthogonal columns.

R Matrix

An nxn upper-triangular matrix.

LD Array.<number>

A list of the zero columns of Q.

Details
object

Diagonalization

Diagonalizability data: this = CDC^(-1).

Properties
Name Type Description
C Matrix

An nxn invertible matrix.

D Matrix

An nxn diagonal matrix, or a block diagonal matrix in the case of block diagonalization.

Details
object

SVDData

Singular value decomposition data.

Properties
Name Type Description
U Matrix

An mxm orthogonal matrix.

V Matrix

An nxn orthogonal matrix.

Σ Array.<number>

The singular values.

Details
object

LDLTData

LDLT decomposition data.

Properties
Name Type Description
L Matrix

An nxn lower-unitriangular matrix.

D Matrix

The diagonal entries.

Details
object