JAMA
[ class tree: JAMA ] [ index: JAMA ] [ all elements ]

Class: QRDecomposition

Source Location: /PHPExcel/Shared/JAMA/QRDecomposition.php

Class Overview




Author(s):

  • Paul Meagher

Version:

  • 1.1

Variables

Methods



Class Details

[line 19]


Tags:

author:  Paul Meagher
version:  1.1
license:  PHP


[ Top ]


Class Variables

$m =

[line 31]

Row dimension.

Row dimension.




Tags:

access:  private

Type:   integer


[ Top ]

$n =

[line 37]

Column dimension.

Column dimension.




Tags:

access:  private

Type:   integer


[ Top ]

$QR = array()

[line 25]

Array for internal storage of decomposition.

Array for internal storage of decomposition.




Tags:

access:  private

Type:   array


[ Top ]

$Rdiag = array()

[line 43]

Array for internal storage of diagonal of R.

Array for internal storage of diagonal of R.




Tags:

access:  private

Type:   array


[ Top ]



Class Methods


constructor __construct [line 52]

Structure __construct( matrix $A)

QR Decomposition computed by Householder reflections.

QR Decomposition computed by Householder reflections.




Tags:

return:  to access R and the Householder vectors and compute Q.
access:  public


Parameters:

matrix   $A   Rectangular matrix

[ Top ]

method getH [line 114]

Matrix getH( )

Return the Householder vectors

Return the Householder vectors




Tags:

return:  Lower trapezoidal matrix whose columns define the reflections
access:  public


[ Top ]

method getQ [line 154]

Matrix getQ( )

Generate and return the (economy-sized) orthogonal factor

Generate and return the (economy-sized) orthogonal factor




Tags:

return:  orthogonal factor
access:  public


[ Top ]

method getR [line 133]

Matrix getR( )

Return the upper triangular factor

Return the upper triangular factor




Tags:

return:  upper triangular factor
access:  public


[ Top ]

method isFullRank [line 99]

boolean isFullRank( )

Is the matrix full rank?

Is the matrix full rank?




Tags:

return:  true if R, and hence A, has full rank, else false.
access:  public


[ Top ]

method solve [line 192]

Matrix solve( Matrix $B)

Least squares solution of A*X = B

Least squares solution of A*X = B




Tags:

return:  Matrix that minimizes the two norm of Q*R*X-B.
access:  public


Parameters:

Matrix   $B   A Matrix with as many rows as A and any number of columns.

[ Top ]


Documentation generated on Mon, 11 Jan 2010 08:13:08 +0100 by phpDocumentor 1.4.1