-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrepl.txt
More file actions
175 lines (137 loc) · 5.86 KB
/
Copy pathrepl.txt
File metadata and controls
175 lines (137 loc) · 5.86 KB
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
169
170
171
172
173
174
{{alias}}( [options] )
Returns a one-dimensional single-precision floating-point ndarray.
Parameters
----------
options: Object (optional)
Options.
options.order: string (optional)
Specifies whether an array is row-major (C-style) or column-major
(Fortran-style). Default: 'row-major'.
options.mode: string (optional)
Specifies how to handle indices which exceed array dimensions. If equal
to 'throw', an ndarray instance throws an error when an index exceeds
array dimensions. If equal to 'normalize', an ndarray instance
normalizes negative indices and throws an error when an index exceeds
array dimensions. If equal to 'wrap', an ndarray instance wraps around
indices exceeding array dimensions using modulo arithmetic. If equal to
'clamp', an ndarray instance sets an index exceeding array dimensions
to either `0` (minimum index) or the maximum index. Default: 'throw'.
options.readonly: boolean (optional)
Boolean indicating whether an array should be read-only. Default: false.
Returns
-------
out: ndarray
A one-dimensional ndarray.
Examples
--------
> var arr = {{alias}}()
<ndarray>
{{alias}}( length[, options] )
Returns a one-dimensional single-precision floating-point ndarray having a
specified length.
Parameters
----------
length: integer
Number of elements.
options: Object (optional)
Options.
options.order: string (optional)
Specifies whether an array is row-major (C-style) or column-major
(Fortran-style). Default: 'row-major'.
options.mode: string (optional)
Specifies how to handle indices which exceed array dimensions. If equal
to 'throw', an ndarray instance throws an error when an index exceeds
array dimensions. If equal to 'normalize', an ndarray instance
normalizes negative indices and throws an error when an index exceeds
array dimensions. If equal to 'wrap', an ndarray instance wraps around
indices exceeding array dimensions using modulo arithmetic. If equal to
'clamp', an ndarray instance sets an index exceeding array dimensions
to either `0` (minimum index) or the maximum index. Default: 'throw'.
options.readonly: boolean (optional)
Boolean indicating whether an array should be read-only. Default: false.
Returns
-------
out: ndarray
A one-dimensional ndarray.
Examples
--------
> var arr = {{alias}}( 5 )
<ndarray>
> var len = {{alias:@stdlib/ndarray/numel}}( arr )
5
{{alias}}( obj[, options] )
Creates a one-dimensional single-precision floating-point ndarray from an
array-like object or iterable.
Parameters
----------
obj: Object
Array-like object or iterable from which to generate an ndarray.
options: Object (optional)
Options.
options.order: string (optional)
Specifies whether an array is row-major (C-style) or column-major
(Fortran-style). Default: 'row-major'.
options.mode: string (optional)
Specifies how to handle indices which exceed array dimensions. If equal
to 'throw', an ndarray instance throws an error when an index exceeds
array dimensions. If equal to 'normalize', an ndarray instance
normalizes negative indices and throws an error when an index exceeds
array dimensions. If equal to 'wrap', an ndarray instance wraps around
indices exceeding array dimensions using modulo arithmetic. If equal to
'clamp', an ndarray instance sets an index exceeding array dimensions
to either `0` (minimum index) or the maximum index. Default: 'throw'.
options.readonly: boolean (optional)
Boolean indicating whether an array should be read-only. Default: false.
Returns
-------
out: ndarray
A one-dimensional ndarray.
Examples
--------
> var v = [ 1.0, 2.0, 3.0 ];
> var arr = {{alias}}( v )
<ndarray>
> var len = {{alias:@stdlib/ndarray/numel}}( arr )
3
{{alias}}( buffer[, byteOffset[, length]][, options] )
Returns a one-dimensional single-precision floating-point ndarray view of an
ArrayBuffer.
Parameters
----------
buffer: ArrayBuffer
Underlying ArrayBuffer.
byteOffset: integer (optional)
Integer byte offset specifying the location of the first indexed
element. Default: 0.
length: integer (optional)
View length. If not provided, the view spans from the byteOffset to
the end of the underlying ArrayBuffer.
options: Object (optional)
Options.
options.order: string (optional)
Specifies whether an array is row-major (C-style) or column-major
(Fortran-style). Default: 'row-major'.
options.mode: string (optional)
Specifies how to handle indices which exceed array dimensions. If equal
to 'throw', an ndarray instance throws an error when an index exceeds
array dimensions. If equal to 'normalize', an ndarray instance
normalizes negative indices and throws an error when an index exceeds
array dimensions. If equal to 'wrap', an ndarray instance wraps around
indices exceeding array dimensions using modulo arithmetic. If equal to
'clamp', an ndarray instance sets an index exceeding array dimensions
to either `0` (minimum index) or the maximum index. Default: 'throw'.
options.readonly: boolean (optional)
Boolean indicating whether an array should be read-only. Default: false.
Returns
-------
out: ndarray
A one-dimensional ndarray.
Examples
--------
> var buf = new {{alias:@stdlib/array/buffer}}( 32 );
> var arr = {{alias}}( buf, 0, 4 )
<ndarray>
> var len = {{alias:@stdlib/ndarray/numel}}( arr )
4
See Also
--------