np_split
Split an array into multiple sub-arrays along a given axis, either into equal sections or at specified indices.
Instructions
Split an array into multiple sub-arrays.
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>",
"indices_or_sections": "<indices_or_sections>"
},
"name": "np_split"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| array | Yes | The array to split. | |
| indices_or_sections | Yes | If an int, the number of equal sections. If a list, the indices at which to split. | |
| axis | No | The axis along which to split (default: 0). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |