Passed
Push — main ( e1cf2a...15c446 )
by Shubham
02:12
created
src/reductions/ref.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -19,11 +19,11 @@
 block discarded – undo
19 19
 
20 20
 class ref { 
21 21
     
22
-     /**
23
-      * 
24
-      * @param \Np\matrix $m
25
-      * @return matrix|null
26
-      */
22
+        /**
23
+         * 
24
+         * @param \Np\matrix $m
25
+         * @return matrix|null
26
+         */
27 27
     public static function factory(\Np\matrix $m): matrix|null {
28 28
         $ipiv = vector::factory(min($m->row, $m->col), vector::INT);
29 29
         $ar = $m->copyMatrix();
Please login to merge, or discard this patch.
src/vector.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -76,12 +76,12 @@  discard block
 block discarded – undo
76 76
         return $ar;
77 77
     }
78 78
     
79
-     /**
80
-     * 
81
-     * @param int $col
82
-     * @param int $dtype
83
-     * @return vector
84
-     */
79
+        /**
80
+         * 
81
+         * @param int $col
82
+         * @param int $dtype
83
+         * @return vector
84
+         */
85 85
     public static function zeros(int $col, int $dtype = self::FLOAT): vector {
86 86
         $ar = self::factory($col, $dtype);
87 87
         for ($i = 0; $i < $col; ++$i) {
@@ -104,10 +104,10 @@  discard block
 block discarded – undo
104 104
     }
105 105
     
106 106
         /**
107
-     * create a null like vector
108
-     * @param int $col
109
-     * @return vector
110
-     */
107
+         * create a null like vector
108
+         * @param int $col
109
+         * @return vector
110
+         */
111 111
     public static function null(int $col, int $dtype = self::FLOAT): vector {
112 112
         $ar = self::factory($col, $dtype);
113 113
         for ($i = 0; $i < $col; ++$i) {
@@ -674,7 +674,7 @@  discard block
 block discarded – undo
674 674
         return true;
675 675
     }
676 676
     
677
-     protected function checkDtype(vector $vector) {
677
+        protected function checkDtype(vector $vector) {
678 678
         if($this->dtype != $vector->dtype) {
679 679
             self::_err('Mismatch Dtype of given vector');
680 680
         }
Please login to merge, or discard this patch.