We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54e82d7 commit 8659476Copy full SHA for 8659476
src/Vector.php
@@ -116,7 +116,8 @@ public function innerProduct(Vector $other): float
116
*/
117
public function outerProduct(Vector $other): Matrix
118
{
119
- $literal = array();
+ $literal = [];
120
+
121
for ($i = 0; $i < $this->getSize(); $i++) {
122
for ($j = 0; $j < $other->getSize(); $j++) {
123
$literal[$i][$j] = $this->toArray()[$i] * $other->toArray()[$j];
0 commit comments