-
-
Notifications
You must be signed in to change notification settings - Fork 804
/
Copy pathrepl.txt
169 lines (121 loc) · 3.29 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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
{{alias}}()
A typed array constructor which returns a typed array representing an array
of double-precision floating-point numbers in the platform byte order.
Returns
-------
out: Float64Array
A typed array.
Examples
--------
> var arr = new {{alias}}()
<Float64Array>
{{alias}}( length )
Returns a typed array having a specified length.
Parameters
----------
length: integer
Typed array length.
Returns
-------
out: Float64Array
A typed array.
Examples
--------
> var arr = new {{alias}}( 5 )
<Float64Array>[ 0.0, 0.0, 0.0, 0.0, 0.0 ]
{{alias}}( typedarray )
Creates a typed array from another typed array.
Parameters
----------
typedarray: TypedArray
Typed array from which to generate another typed array.
Returns
-------
out: Float64Array
A typed array.
Examples
--------
> var arr1 = new {{alias:@stdlib/array/float32}}( [ 0.5, 0.5, 0.5 ] );
> var arr2 = new {{alias}}( arr1 )
<Float64Array>[ 0.5, 0.5, 0.5 ]
{{alias}}( obj )
Creates a typed array from an array-like object or iterable.
Parameters
----------
obj: Object
Array-like object or iterable from which to generate a typed array.
Returns
-------
out: Float64Array
A typed array.
Examples
--------
> var arr1 = [ 0.5, 0.5, 0.5 ];
> var arr2 = new {{alias}}( arr1 )
<Float64Array>[ 0.5, 0.5, 0.5 ]
{{alias}}( buffer[, byteOffset[, length]] )
Returns a typed array view of an ArrayBuffer.
Parameters
----------
buffer: ArrayBuffer
Underlying ArrayBuffer.
byteOffset: integer (optional)
Integer byte offset specifying the location of the first typed 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.
Returns
-------
out: Float64Array
A typed array.
Examples
--------
> var buf = new {{alias:@stdlib/array/buffer}}( 32 );
> var arr = new {{alias}}( buf, 0, 4 )
<Float64Array>[ 0.0, 0.0, 0.0, 0.0 ]
{{alias}}.BYTES_PER_ELEMENT
Number of bytes per view element.
Examples
--------
> {{alias}}.BYTES_PER_ELEMENT
8
{{alias}}.name
Typed array constructor name.
Examples
--------
> {{alias}}.name
'Float64Array'
{{alias}}.prototype.buffer
Read-only property which returns the ArrayBuffer referenced by the typed
array.
Examples
--------
> var arr = new {{alias}}( 5 );
> arr.buffer
<ArrayBuffer>
{{alias}}.prototype.byteLength
Read-only property which returns the length (in bytes) of the typed array.
Examples
--------
> var arr = new {{alias}}( 5 );
> arr.byteLength
40
{{alias}}.prototype.byteOffset
Read-only property which returns the offset (in bytes) of the typed array
from the start of its ArrayBuffer.
Examples
--------
> var arr = new {{alias}}( 5 );
> arr.byteOffset
0
{{alias}}.prototype.length
Read-only property which returns the number of view elements.
Examples
--------
> var arr = new {{alias}}( 5 );
> arr.length
5
TODO: add methods
See Also
--------