public function PHPExcel_Shared_JAMA_LUDecomposition::getL in Loft Data Grids 6.2
Same name and namespace in other branches
- 7.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/JAMA/LUDecomposition.php \PHPExcel_Shared_JAMA_LUDecomposition::getL()
* Get lower triangular factor. * *
Return value
array Lower triangular factor
File
- vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Shared/ JAMA/ LUDecomposition.php, line 128
Class
- PHPExcel_Shared_JAMA_LUDecomposition
- @package JAMA
Code
public function getL() {
for ($i = 0; $i < $this->m; ++$i) {
for ($j = 0; $j < $this->n; ++$j) {
if ($i > $j) {
$L[$i][$j] = $this->LU[$i][$j];
}
elseif ($i == $j) {
$L[$i][$j] = 1.0;
}
else {
$L[$i][$j] = 0.0;
}
}
}
return new PHPExcel_Shared_JAMA_Matrix($L);
}