np_power
Compute element-wise exponentiation of array elements by raising each base value to a given exponent, supporting scalar or array exponents.
Instructions
Element-wise exponentiation of array elements.
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": {
"a": "<a>",
"b": "<b>"
},
"name": "np_power"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | The base array. | |
| b | Yes | The exponent (can be array or scalar). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |