Moodle PHP Documentation 4.3
Moodle 4.3.5 (Build: 20240610) (7dcfaa79f78)
Phpml\Helper\Optimizer\MP Class Reference

Handles element-wise vector operations between vector-vector and vector-scalar variables. More...

Static Public Member Functions

static add (array $m1, array $m2, int $mag=1)
 Element-wise addition of two vectors of the same size.
 
static adds (array $m1, float $m2, int $mag=1)
 Element-wise addition of a vector with a scalar.
 
static div (array $m1, array $m2)
 Element-wise division of two vectors of the same size.
 
static divs (array $m1, float $m2)
 Element-wise division of a vector with a scalar.
 
static mul (array $m1, array $m2)
 Element-wise multiplication of two vectors of the same size.
 
static muls (array $m1, float $m2)
 Element-wise multiplication of a vector with a scalar.
 
static sub (array $m1, array $m2)
 Element-wise subtraction of two vectors of the same size.
 
static subs (array $m1, float $m2)
 Element-wise subtraction of a vector with a scalar.
 

Detailed Description

Handles element-wise vector operations between vector-vector and vector-scalar variables.


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