Create a new NdArray filled with zeros
SciPhp\NdArray
NumPhp::zeros(
mixed
$tuple
)
$tuple
The new SciPhp\NdArray
use SciPhp\NumPhp as np;
$x = np::zeros([2, 2]);
echo $x;
The above example will output:
[[0 0] [0 0]]
use SciPhp\NumPhp as np;
$x = np::zeros(3, 3);
echo $x;
The above example will output:
[[0 0 0] [0 0 0] [0 0 0]]