File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments