NumPower / numpower

PHP extension for efficient scientific computing and array manipulation with GPU support
https://numpower.org
Other
192 stars 4 forks source link

Implement broadcasting on arithmetic operations #10

Closed henrique-borba closed 1 year ago

henrique-borba commented 1 year ago

Allow different shape, broadcastable NDArrays, to perform arithmetic operations:


$a = nd::ones([2,2,2]);
$b = nd::ones([2]);

$c = $a + $b;