|
| execute ($value) |
|
| result () |
| Return the result of the operation.
|
|
|
| $columns |
| Number of columns in the matrix.
|
|
| $matrix |
|
| $rows |
| Number of rows in the matrix.
|
|
◆ result()
Matrix\Operators\Operator::result |
( |
| ) |
|
|
inherited |
Return the result of the operation.
- Return values
-
◆ subtractMatrix()
Matrix\Operators\Subtraction::subtractMatrix |
( |
Matrix | $value | ) |
|
|
protected |
Execute the subtraction for a matrix.
- Parameters
-
Matrix | $value | The numeric value to subtract from the current base value |
- Return values
-
$this | The operation object, allowing multiple subtractions to be chained |
- Exceptions
-
Exception | If the provided argument is not appropriate for the operation |
◆ subtractScalar()
Matrix\Operators\Subtraction::subtractScalar |
( |
| $value | ) |
|
|
protected |
Execute the subtraction for a scalar.
- Parameters
-
mixed | $value | The numeric value to subtracted from the current base value |
- Return values
-
$this | The operation object, allowing multiple additions to be chained |
◆ validateMatchingDimensions()
Matrix\Operators\Operator::validateMatchingDimensions |
( |
Matrix | $matrix | ) |
|
|
protectedinherited |
Compare the dimensions of the matrices being operated on to see if they are valid for addition/subtraction.
- Parameters
-
Matrix | $matrix | The second Matrix object on which the operation will be performed |
- Exceptions
-
◆ validateReflectingDimensions()
Matrix\Operators\Operator::validateReflectingDimensions |
( |
Matrix | $matrix | ) |
|
|
protectedinherited |
Compare the dimensions of the matrices being operated on to see if they are valid for multiplication/division.
- Parameters
-
Matrix | $matrix | The second Matrix object on which the operation will be performed |
- Exceptions
-
The documentation for this class was generated from the following file:
- lib/phpspreadsheet/markbaker/matrix/classes/src/Operators/Subtraction.php