mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-09 21:48:41 +00:00
Fix #127
This commit is contained in:
parent
3365b59837
commit
f1e6e7a63b
|
|
@ -84,6 +84,8 @@ class LUDecomposition
|
||||||
|
|
||||||
public function getL()
|
public function getL()
|
||||||
{
|
{
|
||||||
|
$L = [[]];
|
||||||
|
|
||||||
for ($i = 0; $i < $this->m; ++$i) {
|
for ($i = 0; $i < $this->m; ++$i) {
|
||||||
for ($j = 0; $j < $this->n; ++$j) {
|
for ($j = 0; $j < $this->n; ++$j) {
|
||||||
if ($i > $j) {
|
if ($i > $j) {
|
||||||
|
|
@ -104,6 +106,8 @@ class LUDecomposition
|
||||||
|
|
||||||
public function getU()
|
public function getU()
|
||||||
{
|
{
|
||||||
|
$U = [[]];
|
||||||
|
|
||||||
for ($i = 0; $i < $this->n; ++$i) {
|
for ($i = 0; $i < $this->n; ++$i) {
|
||||||
for ($j = 0; $j < $this->n; ++$j) {
|
for ($j = 0; $j < $this->n; ++$j) {
|
||||||
if ($i <= $j) {
|
if ($i <= $j) {
|
||||||
|
|
@ -154,8 +158,6 @@ class LUDecomposition
|
||||||
if (!$this->isNonsingular()) {
|
if (!$this->isNonsingular()) {
|
||||||
}
|
}
|
||||||
|
|
||||||
var_dump($this->piv);
|
|
||||||
|
|
||||||
$nx = $B->getM();
|
$nx = $B->getM();
|
||||||
$X = $B->getMatrix($this->piv, 0, $nx-1);
|
$X = $B->getMatrix($this->piv, 0, $nx-1);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user