Create a new NdArray filled with a value
SciPhp\NdArray
NumPhp::full(
array
$shape
,
mixed
$value
)
$shape
$value
The new SciPhp\NdArray
use SciPhp\NumPhp as np;
$x = np::full([1, 2], 6);
echo $x;
The above example will output:
[[6 6]]