-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrepl.txt
137 lines (101 loc) · 3.13 KB
/
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
{{alias}}( [dtype] )
Creates a complex typed array.
The function supports the following data types:
- complex128: double-precision complex floating-point numbers.
- complex64: single-precision complex floating-point numbers.
The default typed array data type is `complex128`.
Parameters
----------
dtype: string (optional)
Data type. Default: 'complex128'.
Returns
-------
out: ComplexArray
A complex number typed array.
Examples
--------
> var arr = {{alias}}()
<Complex128Array>
> arr = {{alias}}( 'complex64' )
<Complex64Array>
{{alias}}( length[, dtype] )
Returns a complex number typed array having a specified length.
Parameters
----------
length: integer
Array length.
dtype: string (optional)
Data type. Default: 'complex128'.
Returns
-------
out: ComplexArray
A complex number typed array.
Examples
--------
> var arr = {{alias}}( 5 )
<Complex128Array>
> arr = {{alias}}( 5, 'complex64' )
<Complex64Array>
{{alias}}( complexarray[, dtype] )
Creates a complex number typed array from another complex number typed
array.
Parameters
----------
complexarray: ComplexArray
Complex number typed array from which to generate another complex number
typed array.
dtype: string (optional)
Data type. Default: 'complex128'.
Returns
-------
out: ComplexArray
A complex number typed array.
Examples
--------
> var arr1 = {{alias}}( [ 0.5, 0.5, 0.5, 0.5 ] );
> var arr2 = {{alias}}( arr1, 'complex64' )
<Complex64Array>
{{alias}}( obj[, dtype] )
Creates a complex number typed array from an array-like object or iterable.
If an array-like object contains interleaved real and imaginary components,
the array-like object must have a length which is a multiple of two.
Parameters
----------
obj: Object
Array-like object or iterable from which to generate an array.
dtype: string (optional)
Data type. Default: 'complex128'.
Returns
-------
out: ComplexArray
A complex number typed array.
Examples
--------
> var arr1 = [ 0.5, 0.5, 0.5, 0.5 ];
> var arr2 = {{alias}}( arr1, 'complex64' )
<Complex64Array>
{{alias}}( buffer[, byteOffset[, length]][, dtype] )
Returns a complex number typed array view of an ArrayBuffer.
Parameters
----------
buffer: ArrayBuffer
Underlying ArrayBuffer.
byteOffset: integer (optional)
Integer byte offset specifying the location of the first array element.
Default: 0.
length: integer (optional)
View length. If not provided, the view spans from the byteOffset to
the end of the underlying ArrayBuffer.
dtype: string (optional)
Data type. Default: 'complex128'.
Returns
-------
out: ComplexArray
A complex number typed array.
Examples
--------
> var buf = new {{alias:@stdlib/array/buffer}}( 64 );
> var arr = {{alias}}( buf, 0, 8, 'complex64' )
<Complex64Array>
See Also
--------