-
-
Notifications
You must be signed in to change notification settings - Fork 804
/
Copy pathrepl.txt
58 lines (42 loc) · 1.47 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
{{alias}}( x )
Converts an array-like object to an object likely to have the same "shape".
The returned object has the following properties:
- data: reference to input array.
- dtype: input array data type.
- accessorProtocol: boolean indicating whether the input array uses
accessors for getting and setting elements.
- accessors: a two-element array whose first element is an accessor for
retrieving an array element and whose second element is an accessor for
setting an array element.
The getter accessor accepts two arguments:
- data: data buffer.
- idx: element index.
The setter accessor accepts three arguments:
- data: data buffer.
- idx: element index.
- value: value to set.
Parameters
----------
x: ArrayLikeObject
Input array.
Returns
-------
out: Object
Object containing array data.
out.data: ArrayLikeObject
Reference to input array.
out.dtype: string|null
Input array data type.
out.accessorProtocol: boolean
Boolean indicating whether the input array use accessors for getting and
setting elements.
out.accessors: Array<Function>
A two-element array whose first element is an accessor for retrieving an
array element and whose second element is an accessor for setting an
array element.
Examples
--------
> var out = {{alias}}( [ 1, 2, 3, 4 ] )
{...}
See Also
--------