DoubleQRDecomp Type

This class computes the QR factorization of a general m 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

DoubleQRDecomp(matrix)

Full Usage: DoubleQRDecomp(matrix)

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

Constructor for QR decomposition class. The constructor performs the factorization and the upper and lower matrices are accessible by the Q and R properties.

matrix : IROMatrix<float>

The matrix to factor.

ArgumentNullException matrix is null.

Instance members

Instance member Description

this.GetDeterminant

Full Usage: this.GetDeterminant

Returns: float the determinant of the matrix.

Calculates the determinant (absolute value) of the matrix.

Returns: float

the determinant of the matrix.

this.IsFullRank

Full Usage: this.IsFullRank

Returns: bool

Determine whether the matrix is full rank or not

Returns: bool

this.Q

Full Usage: this.Q

Returns: DoubleMatrix

Returns the orthogonal Q matrix.

Returns: DoubleMatrix

this.R

Full Usage: this.R

Returns: DoubleMatrix

Returns the upper triangular factor R.

Returns: DoubleMatrix

this.Solve

Full Usage: this.Solve

Parameters:
    B : IROMatrix<float> - A matrix with as many rows as A and any number of columns.

Returns: DoubleMatrix X that minimizes the two norm of Q*R*X-B.

Finds the least squares solution of A*X = B, where m <= n

B : IROMatrix<float>

A matrix with as many rows as A and any number of columns.

Returns: DoubleMatrix

X that minimizes the two norm of Q*R*X-B.

ArgumentException Matrix row dimensions must agree.
InvalidOperationException Matrix is rank deficient or m > n.