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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"array": "<array>"
},
"name": "np_linalg_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 |