@@ -24,8 +24,8 @@ |
||
| 24 | 24 | * @copyright (c) 2020-2021, Shubham Chaudhary |
| 25 | 25 | * |
| 26 | 26 | */ |
| 27 | - class vector extends nd { |
|
| 28 | - use ops, linAlg; |
|
| 27 | + class vector extends nd { |
|
| 28 | + use ops, linAlg; |
|
| 29 | 29 | |
| 30 | 30 | /** |
| 31 | 31 | * Factory method to build a new vector. |
@@ -26,8 +26,10 @@ |
||
| 26 | 26 | $lead = 0; |
| 27 | 27 | $ar = $m->copy(); |
| 28 | 28 | for ($r = 0; $r < $ar->row; ++$r) { |
| 29 | - if ($lead >= $ar->col) |
|
| 30 | - break; { |
|
| 29 | + if ($lead >= $ar->col) { |
|
| 30 | + break; |
|
| 31 | + } |
|
| 32 | + { |
|
| 31 | 33 | $i = $r; |
| 32 | 34 | while ($ar->data[$i * $ar->col + $lead] == 0) { |
| 33 | 35 | $i++; |