Matrix or vector norm.
float|int
LinAlg::norm(
array|NdArray
$m
)
$m
A float or an integer. Norm of the matrix or vector.
use SciPhp\NumPhp as np;
$m =
[[1, 2],
[0, 2]];
echo np::linalg()->norm($m);
The above example will output:
3