@@ 63-67 (lines=5) @@ | ||
60 | $this->A = $args[0]; |
|
61 | break; |
|
62 | //Square matrix - n x n |
|
63 | case 'integer': |
|
64 | $this->m = $args[0]; |
|
65 | $this->n = $args[0]; |
|
66 | $this->A = array_fill(0, $this->m, array_fill(0, $this->n, 0)); |
|
67 | break; |
|
68 | //Rectangular matrix - m x n |
|
69 | case 'integer,integer': |
|
70 | $this->m = $args[0]; |
|
@@ 69-73 (lines=5) @@ | ||
66 | $this->A = array_fill(0, $this->m, array_fill(0, $this->n, 0)); |
|
67 | break; |
|
68 | //Rectangular matrix - m x n |
|
69 | case 'integer,integer': |
|
70 | $this->m = $args[0]; |
|
71 | $this->n = $args[1]; |
|
72 | $this->A = array_fill(0, $this->m, array_fill(0, $this->n, 0)); |
|
73 | break; |
|
74 | //Rectangular matrix - m x n initialized from packed array |
|
75 | case 'array,integer': |
|
76 | $this->m = $args[1]; |