Create a new NdArray filled with null
SciPhp\NdArray
NumPhp::nulls(
mixed
$tuple
)
NumPhp::nulls() is an alias of NumPy.empty() (Python).
$tuple
The new SciPhp\NdArray
use SciPhp\NumPhp as np;
$x = np::nulls([2, 2]);
echo $x;
The above example will output:
[[null null] [null null]]
use SciPhp\NumPhp as np;
$x = np::nulls(2, 2);
echo $x;
The above example will output:
[[null null] [null null]]