\Matrix\DecompositionQR

Summary

Methods
Properties
Constants
__construct()
getHouseholdVectors()
getQ()
getR()
isFullRank()
solve()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
hypo()
decompose()
$qrMatrix
$rows
$columns
$rDiagonal
N/A

Properties

$qrMatrix

$qrMatrix

$rows

$rows

$columns

$columns

$rDiagonal

$rDiagonal

Methods

__construct()

__construct(\Matrix\Matrix  $matrix) : mixed

Parameters

\Matrix\Matrix $matrix

Returns

mixed —

getHouseholdVectors()

getHouseholdVectors() : \Matrix\Matrix

Returns

\Matrix\Matrix —

getQ()

getQ() : \Matrix\Matrix

Returns

\Matrix\Matrix —

getR()

getR() : \Matrix\Matrix

Returns

\Matrix\Matrix —

isFullRank()

isFullRank() : bool

Returns

bool —

solve()

solve(\Matrix\Matrix  $B) : \Matrix\Matrix

Least squares solution of A*X = B.

Parameters

\Matrix\Matrix $B

a Matrix with as many rows as A and any number of columns

Throws

\Matrix\Exception

Returns

\Matrix\Matrix —

matrix that minimizes the two norm of QRX-B

hypo()

hypo(mixed  $a, mixed  $b) : float

Parameters

mixed $a
mixed $b

Returns

float —

decompose()

decompose() : void

QR Decomposition computed by Householder reflections.