Skip to content

Commit 82e339c

Browse files
committed
Camel-case variable name.
1 parent 3031b09 commit 82e339c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/LUDecomposition.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,21 +68,21 @@ private function decompose()
6868
for ($k = 0; $k < $n; ++$k) {
6969
// Search for the best (biggest) pivot element
7070
$biggest = 0;
71-
$max_row_index = $k;
71+
$maxRowIndex = $k;
7272
for ($i = $k; $i < $n; ++$i) {
7373
$temp = $scaling[$i] * abs($this->internal[$i][$k]);
7474
if ($temp > $biggest) {
7575
$biggest = $temp;
76-
$max_row_index = $i;
76+
$maxRowIndex = $i;
7777
}
7878
}
7979

8080
// Perform the row pivot and store in the permutations vector
81-
if ($k != $max_row_index) {
82-
$this->rowPivot($k, $max_row_index);
81+
if ($k != $maxRowIndex) {
82+
$this->rowPivot($k, $maxRowIndex);
8383
$temp = $p[$k];
84-
$p[$k] = $p[$max_row_index];
85-
$p[$max_row_index] = $temp;
84+
$p[$k] = $p[$maxRowIndex];
85+
$p[$maxRowIndex] = $temp;
8686
$this->parity = -$this->parity; // flip parity
8787
}
8888

0 commit comments

Comments
 (0)