mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 17:58:41 +00:00
Fix #127
This commit is contained in:
parent
3365b59837
commit
f1e6e7a63b
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user