-
-
Notifications
You must be signed in to change notification settings - Fork 810
/
Copy pathrepl.txt
37 lines (27 loc) · 905 Bytes
/
repl.txt
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
35
36
{{alias}}( length[, dtype] )
Returns an array filled with NaNs and having a specified length.
The function supports the following data types:
- float64: double-precision floating-point numbers (IEEE 754)
- float32: single-precision floating-point numbers (IEEE 754)
- complex128: double-precision complex floating-point numbers
- complex64: single-precision complex floating-point numbers
- generic: generic JavaScript values
The default array data type is `float64`.
Parameters
----------
length: integer
Array length.
dtype: string (optional)
Data type. Default: 'float64'.
Returns
-------
out: TypedArray|Array
Output array.
Examples
--------
> var arr = {{alias}}( 2 )
<Float64Array>[ NaN, NaN ]
> arr = {{alias}}( 2, 'float32' )
<Float32Array>[ NaN, NaN ]
See Also
--------