File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -159,16 +159,16 @@ public function solve(array $known)
159159
160160 // Solve L * y = b for y (forward substitution)
161161 for ($ i = 0 ; $ i < $ rowCount ; ++$ i ) {
162- $ this_b = $ known [$ this ->permutations [$ i ]]; // Unscramble the permutations
163- if ($ skip && $ this_b == 0 ) { // Leading zeroes in b give zeroes in y.
162+ $ thisB = $ known [$ this ->permutations [$ i ]]; // Unscramble the permutations
163+ if ($ skip && $ thisB == 0 ) { // Leading zeroes in b give zeroes in y.
164164 $ y [$ i ] = 0 ;
165165 } else {
166166 if ($ skip ) {
167167 // We found a non-zero element, so don't skip any more.
168168 $ skip = false ;
169169 }
170170
171- $ y [$ i ] = $ this_b ;
171+ $ y [$ i ] = $ thisB ;
172172
173173 for ($ j = 0 ; $ j < $ i ; ++$ j ) {
174174 $ y [$ i ] = $ y [$ i ] - $ this ->get ($ i , $ j ) * $ y [$ j ];
You can’t perform that action at this time.
0 commit comments