JAMA

# Class: LUDecomposition Source Location: /PHPExcel/Shared/JAMA/LUDecomposition.php
### Class Overview
#### Author(s): Michael Bommarito Paul Meagher Bartosz Matosiuk #### Version: 1.1 | ### Variables $LU $m $n $piv $pivsign | ### Methods __construct det getDoublePivot getL getPivot getU isNonsingular solve
### Class Details [line 21] #### Tags:
author: | Michael Bommarito
author: | Paul Meagher
author: | Bartosz Matosiuk
version: | 1.1
license: | PHP
[ Top ] ### Class Variables #### $LU = array() [line 27] Decomposition storage Decomposition storage #### Tags:
access: | private
Type: | array
[ Top ] #### $m = [line 33] Row dimension. Row dimension. #### Tags:
access: | private
Type: | int
[ Top ] #### $n = [line 39] Column dimension. Column dimension. #### Tags:
access: | private
Type: | int
[ Top ] #### $piv = array() [line 51] Internal storage of pivot vector. Internal storage of pivot vector. #### Tags:
access: | private
Type: | array
[ Top ] #### $pivsign = [line 45] Pivot sign. Pivot sign. #### Tags:
access: | private
Type: | int
[ Top ] ### Class Methods ### constructor __construct [line 60]
`Structure __construct( $A $A)`
LU Decomposition constructor. LU Decomposition constructor. #### Tags:
return: | to access L, U and piv.
access: | public
#### Parameters:
$A | $A | Rectangular matrix
[ Top ] ### method det [line 200]
`array det( )`
Count determinants Count determinants #### Tags:
return: | d matrix deterninat
access: | public
[ Top ] ### method getDoublePivot [line 175]
`void getDoublePivot( )`
Alias for getPivot Alias for getPivot #### Tags:
see: | LUDecomposition::getPivot()
access: | public
[ Top ] ### method getL [line 125]
`array getL( )`
Get lower triangular factor. Get lower triangular factor. #### Tags:
return: | Lower triangular factor
access: | public
[ Top ] ### method getPivot [line 165]
`array getPivot( )`
Return pivot permutation vector. Return pivot permutation vector. #### Tags:
return: | Pivot vector
access: | public
[ Top ] ### method getU [line 146]
`array getU( )`
Get upper triangular factor. Get upper triangular factor. #### Tags:
return: | Upper triangular factor
access: | public
[ Top ] ### method isNonsingular [line 185]
`true isNonsingular( )`
Is the matrix nonsingular? Is the matrix nonsingular? #### Tags:
return: | if U, and hence A, is nonsingular.
access: | public
[ Top ] ### method solve [line 221]
`X solve( $B $B)`
Solve A*X = B Solve A*X = B #### Tags:
return: | so that L*U*X = B(piv,:)
exception: | RuntimeException Matrix is singular.
exception: | IllegalArgumentException Matrix row dimensions must agree.
access: | public
#### Parameters:
$B | $B | A Matrix with as many rows as A and any number of columns.
[ Top ] Documentation generated on Mon, 11 Jan 2010 08:11:57 +0100 by phpDocumentor 1.4.1