IGLib  1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Meta.Numerics.Matrices.QRDecomposition Class Reference

Represents a QR decomposition of a matrix. More...

Public Member Functions

SquareMatrix QMatrix ()
 The orthogonal matrix Q. More...
 
RectangularMatrix RMatrix ()
 The upper-right triangular matrix R. More...
 
ColumnVector Solve (IList< double > rhs)
 Solve the system A x = b. More...
 

Properties

int RowCount [get]
 Get the number of rows in the original matrix. More...
 
int ColumnCount [get]
 Gets the number of columns in the original matrix. More...
 

Private Attributes

readonly double[] qtStore
 
readonly double[] rStore
 
readonly int rows
 
readonly int cols
 

Detailed Description

Represents a QR decomposition of a matrix.

A QR decomposition represents a rectangular matrix as the product of a square, orthogonal matrix Q and a rectangular, right-upper-triangular matrix R. For example:

The method RectangularMatrix.QRDecomposition of the RectangularMatrix class can be used to QR decompose a rectangular matrix.

Member Function Documentation

SquareMatrix Meta.Numerics.Matrices.QRDecomposition.QMatrix ( )
inline

The orthogonal matrix Q.

Returns
The orthogonal matrix Q.

Referenced by Test.RectangularMatrixTest.RectangularQRDecomposition().

RectangularMatrix Meta.Numerics.Matrices.QRDecomposition.RMatrix ( )
inline

The upper-right triangular matrix R.

Returns
The upper-right triangular matrix R.

The returned matrix is read-only. If you need to make changes to it, you can call RectangularMatrix.Copy to obtain a writable copy.

Referenced by Test.RectangularMatrixTest.RectangularQRDecomposition().

ColumnVector Meta.Numerics.Matrices.QRDecomposition.Solve ( IList< double >  rhs)
inline

Solve the system A x = b.

Parameters
rhsThe right-hand-side b.
Returns
The column vector x for which A x is closest to b.

Member Data Documentation

readonly double [] Meta.Numerics.Matrices.QRDecomposition.qtStore
private
readonly double [] Meta.Numerics.Matrices.QRDecomposition.rStore
private
readonly int Meta.Numerics.Matrices.QRDecomposition.rows
private
readonly int Meta.Numerics.Matrices.QRDecomposition.cols
private

Property Documentation

int Meta.Numerics.Matrices.QRDecomposition.RowCount
get

Get the number of rows in the original matrix.

Referenced by Test.RectangularMatrixTest.RectangularQRDecomposition().

int Meta.Numerics.Matrices.QRDecomposition.ColumnCount
get

Gets the number of columns in the original matrix.

Referenced by Test.RectangularMatrixTest.RectangularQRDecomposition().


The documentation for this class was generated from the following file: