Moodle PHP Documentation 5.1
Moodle 5.1dev (Build: 20250620) (7d9030acd6e)
Matrix\Operators\Division Class Reference
Inheritance diagram for Matrix\Operators\Division:
Matrix\Operators\Multiplication Matrix\Operators\Operator

Public Member Functions

 execute ($value, string $type='division')
 
 result ()
 Return the result of the operation.
 

Protected Member Functions

 multiplyMatrix (Matrix $value, string $type='multiplication')
 Execute the multiplication for a matrix.
 
 multiplyScalar ($value, string $type='multiplication')
 Execute the multiplication for a scalar.
 
 validateMatchingDimensions (Matrix $matrix)
 Compare the dimensions of the matrices being operated on to see if they are valid for addition/subtraction.
 
 validateReflectingDimensions (Matrix $matrix)
 Compare the dimensions of the matrices being operated on to see if they are valid for multiplication/division.
 

Protected Attributes

 $columns
 Number of columns in the matrix.
 
 $matrix
 
 $rows
 Number of rows in the matrix.
 

Member Function Documentation

◆ execute()

Matrix\Operators\Division::execute ( $value,
string $type = 'division' )

Reimplemented from Matrix\Operators\Multiplication.

◆ multiplyMatrix()

Matrix\Operators\Multiplication::multiplyMatrix ( Matrix $value,
string $type = 'multiplication' )
protectedinherited

Execute the multiplication for a matrix.

Parameters
Matrix$valueThe numeric value to multiply with the current base value
Return values
$thisThe operation object, allowing multiple mutiplications to be chained
Exceptions
ExceptionIf the provided argument is not appropriate for the operation

◆ multiplyScalar()

Matrix\Operators\Multiplication::multiplyScalar ( $value,
string $type = 'multiplication' )
protectedinherited

Execute the multiplication for a scalar.

Parameters
mixed$valueThe numeric value to multiply with the current base value
Return values
$thisThe operation object, allowing multiple mutiplications to be chained

◆ result()

Matrix\Operators\Operator::result ( )
inherited

Return the result of the operation.

Return values
Matrix

◆ 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$matrixThe second Matrix object on which the operation will be performed
Exceptions
Exception

◆ 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$matrixThe second Matrix object on which the operation will be performed
Exceptions
Exception

The documentation for this class was generated from the following file: