Definition at line 10 of file Division.php.
◆ execute()
Matrix\Operators\Division::execute |
( |
|
$value, |
|
|
string |
$type = 'division' |
|
) |
| |
Execute the division.
- Parameters
-
mixed | $value | The matrix or numeric value to divide the current base value by |
- Exceptions
-
Exception | If the provided argument is not appropriate for the operation |
- Returns
- $this The operation object, allowing multiple divisions to be chained
Definition at line 19 of file Division.php.
References $type, Matrix\Functions\inverse(), Matrix\Operators\Multiplication\multiplyMatrix(), and Matrix\Operators\Multiplication\multiplyScalar().
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');
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.
The documentation for this class was generated from the following file:
- libs/composer/vendor/markbaker/matrix/classes/src/Operators/Division.php