DoubleLUDecomp Type

This class computes the LU factorization of a general n by n DoubleMatrix.

Copyright (c) 2003-2004, dnAnalytics Project. All rights reserved. See http://www.dnAnalytics.net for details.

Adopted to Altaxo (c) 2005 Dr. Dirk Lellinger.

Constructors

Constructor Description

DoubleLUDecomp(matrix)

Full Usage: DoubleLUDecomp(matrix)

Parameters:
    matrix : IROMatrix<float> - The matrix to factor.

Constructor for LU decomposition class. The constructor performs the factorization and the upper and lower matrices are accessible by the U and L properties.

matrix : IROMatrix<float>

The matrix to factor.

ArgumentNullException matrix is null.
NotSquareMatrixException matrix is not square.

Instance members

Instance member Description

this.GetDeterminant

Full Usage: this.GetDeterminant

Returns: float the determinant of the matrix.

Calculates the determinant of the matrix.

Returns: float

the determinant of the matrix.

this.GetInverse

Full Usage: this.GetInverse

Returns: DoubleMatrix the inverse of the matrix.

Calculates the inverse of the matrix.

Returns: DoubleMatrix

the inverse of the matrix.

SingularMatrixException matrix is singular.

this.GetPivots

Full Usage: this.GetPivots

Returns: int[] array of ints indicating which rows were interchanged during factorization.

Returns an array of ints indicating which rows were interchanged during factorization. Row i was interchanged with row pivots[i].

Returns: int[]

array of ints indicating which rows were interchanged during factorization.

this.IsSingular

Full Usage: this.IsSingular

Returns: bool true if the matrix is singular; otherwise, false.

Return a value indicating whether the matrix is singular.

Returns: bool

true if the matrix is singular; otherwise, false.

this.L

Full Usage: this.L

Returns: DoubleMatrix the lower matrix.

Returns the lower matrix.

Returns: DoubleMatrix

the lower matrix.

this.Solve

Full Usage: this.Solve

Parameters:
    B : IROMatrix<float> - RHS side of the system.

Returns: DoubleMatrix the solution matrix, X.

Solves a system on linear equations, AX=B, where A is the factored matrixed.

B : IROMatrix<float>

RHS side of the system.

Returns: DoubleMatrix

the solution matrix, X.

ArgumentNullException B is null.
SingularMatrixException A is singular.
ArgumentException The number of rows of A and B must be the same.

this.Solve

Full Usage: this.Solve

Parameters:
Returns: DoubleVector the solution vector, X.

Solves a system on linear equations, AX=B, where A is the factored matrixed.

B : IReadOnlyList<float>

RHS side of the system.

Returns: DoubleVector

the solution vector, X.

ArgumentNullException B is null.
SingularMatrixException A is singular.
ArgumentException The number of rows of A and the length of B must be the same.

this.U

Full Usage: this.U

Returns: DoubleMatrix the upper matrix.

Returns the upper matrix.

Returns: DoubleMatrix

the upper matrix.