ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Public Member Functions | |
execute ($value, string $type='multiplication') | |
Execute the multiplication. More... | |
![]() | |
__construct (Matrix $matrix) | |
Create an new handler object for the operation. More... | |
result () | |
Return the result of the operation. More... | |
Protected Member Functions | |
multiplyScalar ($value, string $type='multiplication') | |
Execute the multiplication for a scalar. More... | |
multiplyMatrix (Matrix $value, string $type='multiplication') | |
Execute the multiplication for a matrix. More... | |
![]() | |
validateMatchingDimensions (Matrix $matrix) | |
Compare the dimensions of the matrices being operated on to see if they are valid for addition/subtraction. More... | |
validateReflectingDimensions (Matrix $matrix) | |
Compare the dimensions of the matrices being operated on to see if they are valid for multiplication/division. More... | |
Additional Inherited Members | |
![]() | |
$matrix | |
$rows | |
Number of rows in the matrix. More... | |
$columns | |
Number of columns in the matrix. More... | |
Definition at line 10 of file Multiplication.php.
Matrix\Operators\Multiplication::execute | ( | $value, | |
string | $type = 'multiplication' |
||
) |
Execute the multiplication.
mixed | $value | The matrix or numeric value to multiply the current base value by |
Exception | If the provided argument is not appropriate for the operation |
Reimplemented in Matrix\Operators\Division.
Definition at line 19 of file Multiplication.php.
References $type, Matrix\Operators\Multiplication\multiplyMatrix(), and Matrix\Operators\Multiplication\multiplyScalar().
|
protected |
Execute the multiplication for a matrix.
Matrix | $value | The numeric value to multiply with the current base value |
Exception | If the provided argument is not appropriate for the operation |
Definition at line 62 of file Multiplication.php.
References $key, Matrix\Operators\Operator\$matrix, $row, Matrix\Operators\Operator\$rows, Matrix\Matrix\columns(), Matrix\Builder\createFilledMatrix(), Matrix\Matrix\getColumns(), and Matrix\Operators\Operator\validateReflectingDimensions().
Referenced by Matrix\Operators\Division\execute(), and Matrix\Operators\Multiplication\execute().
|
protected |
Execute the multiplication for a scalar.
mixed | $value | The numeric value to multiply with the current base value |
Definition at line 40 of file Multiplication.php.
References Matrix\Operators\Operator\$columns, $row, and Matrix\Operators\Operator\$rows.
Referenced by Matrix\Operators\Division\execute(), and Matrix\Operators\Multiplication\execute().