forked from stdlib-js/stdlib
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrepl.txt
More file actions
35 lines (25 loc) · 799 Bytes
/
Copy pathrepl.txt
File metadata and controls
35 lines (25 loc) · 799 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{{alias}}( length[, dtype] )
Creates an uninitialized array having a specified length.
In browser environments, the function always returns zero-filled arrays.
If `dtype` is 'generic', the function always returns a zero-filled array.
In Node.js versions >=3.0.0, the underlying memory of returned typed arrays
is *not* initialized. Memory contents are unknown and may contain
*sensitive* data.
Parameters
----------
length: integer
Array length.
dtype: string (optional)
Data type. Default: 'float64'.
Returns
-------
out: TypedArray|Array
Output array.
Examples
--------
> var arr = {{alias}}( 2 )
<Float64Array>
> arr = {{alias}}( 2, 'float32' )
<Float32Array>
See Also
--------