This commit is contained in:
Dennis Eichhorn 2017-10-26 18:53:26 +02:00
parent 3365b59837
commit f1e6e7a63b

View File

@ -84,6 +84,8 @@ class LUDecomposition
public function getL()
{
$L = [[]];
for ($i = 0; $i < $this->m; ++$i) {
for ($j = 0; $j < $this->n; ++$j) {
if ($i > $j) {
@ -104,6 +106,8 @@ class LUDecomposition
public function getU()
{
$U = [[]];
for ($i = 0; $i < $this->n; ++$i) {
for ($j = 0; $j < $this->n; ++$j) {
if ($i <= $j) {
@ -154,8 +158,6 @@ class LUDecomposition
if (!$this->isNonsingular()) {
}
var_dump($this->piv);
$nx = $B->getM();
$X = $B->getMatrix($this->piv, 0, $nx-1);