Back to NDArray Operations
create
Create an uninitialized array with the given dtype.
Syntax
create(dt: Type, n: Int64) → r
Backends
TypeScriptnumwa
Description
Create an uninitialized array with the given dtype.
Parameters
| Name | Description |
|---|---|
| dt | Element type (e.g. Float64, Int32) |
| n | Number of rows (or length for 1D) |
Returns
NDArray of the specified type