21 if (is_array($value)) {
22 $value =
new Matrix($value);
25 if (is_object($value) && ($value instanceof
Matrix)) {
29 } elseif (is_numeric($value)) {
33 throw new Exception(
'Invalid argument for division');
execute($value, string $type='division')
Execute the division.
static inverse(Matrix $matrix, string $type='inverse')
Return the inverse of this matrix.
multiplyScalar($value, string $type='multiplication')
Execute the multiplication for a scalar.
Class for the creating "special" Matrices.
multiplyMatrix(Matrix $value, string $type='multiplication')
Execute the multiplication for a matrix.