diff --git a/Math/Functions/Algebra.php b/Math/Functions/Algebra.php index 05c7ced27..b216f521d 100644 --- a/Math/Functions/Algebra.php +++ b/Math/Functions/Algebra.php @@ -48,6 +48,10 @@ final class Algebra $n2 = ($isMatrix2 = \is_array($value2[0])) ? \count($value2[0]) : 1; if (!$isMatrix1 && $isMatrix2) { + $temp = $value1; + $value1 = $value1; + $value2 = $temp; + $m1 = \count($value1); $n1 = ($isMatrix1 = \is_array($value1[0])) ? \count($value1[0]) : 1; diff --git a/Math/Matrix/Vector.php b/Math/Matrix/Vector.php index 87a6045ef..df011904b 100755 --- a/Math/Matrix/Vector.php +++ b/Math/Matrix/Vector.php @@ -127,7 +127,7 @@ final class Vector extends Matrix /** * Calculate the eucledian dot product * - * @param selft $vector Vector + * @param self $vector Vector * * @return float *