ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Public Member Functions | |
__construct (Matrix $matrix) | |
Create an new handler object for the operation. More... | |
result () | |
Return the result of the operation. More... | |
Protected Member Functions | |
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... | |
Protected Attributes | |
$matrix | |
$rows | |
Number of rows in the matrix. More... | |
$columns | |
Number of columns in the matrix. More... | |
Definition at line 8 of file Operator.php.
Matrix\Operators\Operator::__construct | ( | Matrix | $matrix | ) |
Create an new handler object for the operation.
Definition at line 36 of file Operator.php.
References Matrix\Matrix\columns(), Matrix\Matrix\rows(), and Matrix\Matrix\toArray().
Matrix\Operators\Operator::result | ( | ) |
|
protected |
Compare the dimensions of the matrices being operated on to see if they are valid for addition/subtraction.
Exception |
Definition at line 49 of file Operator.php.
References Matrix\Matrix\columns(), and Matrix\Matrix\rows().
Referenced by Matrix\Operators\Addition\addMatrix(), and Matrix\Operators\Subtraction\subtractMatrix().
|
protected |
Compare the dimensions of the matrices being operated on to see if they are valid for multiplication/division.
Exception |
Definition at line 62 of file Operator.php.
References Matrix\Matrix\rows().
Referenced by Matrix\Operators\Multiplication\multiplyMatrix().
|
protected |
Number of columns in the matrix.
Definition at line 29 of file Operator.php.
Referenced by Matrix\Operators\Addition\addMatrix(), Matrix\Operators\Addition\addScalar(), Matrix\Operators\Multiplication\multiplyScalar(), Matrix\Operators\Subtraction\subtractMatrix(), and Matrix\Operators\Subtraction\subtractScalar().
|
protected |
Definition at line 15 of file Operator.php.
Referenced by Matrix\Operators\Multiplication\multiplyMatrix().
|
protected |
Number of rows in the matrix.
Definition at line 22 of file Operator.php.
Referenced by Matrix\Operators\Addition\addMatrix(), Matrix\Operators\Addition\addScalar(), Matrix\Operators\DirectSum\directSumMatrix(), Matrix\Operators\Multiplication\multiplyMatrix(), Matrix\Operators\Multiplication\multiplyScalar(), Matrix\Operators\Subtraction\subtractMatrix(), and Matrix\Operators\Subtraction\subtractScalar().