Back to Numerical Arrays (NumPy)
np.vector_norm
Compute the vector norm.
Syntax
np.vector_norm(x, ord?, axis?, keepdims?)
Description
Compute the vector norm.
Parameters
| Name | Description |
|---|---|
| x | - Input array |
| ord(optional) | - Order of the norm (default: 2, Euclidean) |
| axis(optional) | - Axis along which to compute. null = flatten |
| keepdims(optional) | - If true, axes are left with size one |
Returns
Promise<NDArray | number>