np_linalg_norm
Compute the norm of a matrix or vector array. Supports orders like Frobenius, nuclear, infinity, and others.
Instructions
Matrix or vector norm.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| array | Yes | The input array. | |
| ord | No | The order of the norm (default: "fro" for matrices, "2" for vectors). Common values: "fro", "nuc", "inf", "-inf", "0", "1", "2". | fro |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |