np_ones
Generate arrays filled with ones, specifying shape and optional data type for numerical computing tasks.
Instructions
Create an array of ones.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| shape | Yes | An integer for 1D shape, or a list of integers for multi-dimensional. | |
| dtype | No | The data type of the array (default: "float64"). | float64 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |