$matrix
$matrix
Stored internally as a 2-dimension array of values
execute(mixed $value) : $this
Execute the subtraction
mixed | $value | The matrix or numeric value to subtract from the current base value |
If the provided argument is not appropriate for the operation
The operation object, allowing multiple subtractions to be chained
validateMatchingDimensions(\Matrix\Matrix $matrix) : void
Compare the dimensions of the matrices being operated on to see if they are valid for addition/subtraction
\Matrix\Matrix | $matrix | The second Matrix object on which the operation will be performed |
validateReflectingDimensions(\Matrix\Matrix $matrix) : void
Compare the dimensions of the matrices being operated on to see if they are valid for multiplication/division
\Matrix\Matrix | $matrix | The second Matrix object on which the operation will be performed |
subtractMatrix(\Matrix\Matrix $value) : $this
Execute the subtraction for a matrix
\Matrix\Matrix | $value | The numeric value to subtract from the current base value |
If the provided argument is not appropriate for the operation
The operation object, allowing multiple subtractions to be chained