-
-
Notifications
You must be signed in to change notification settings - Fork 805
/
Copy pathrepl.txt
40 lines (28 loc) · 936 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
37
38
39
{{alias}}( shape, stridesX )
Reorders ndarray dimensions and associated strides for loop interchange.
The function returns an object having the following properties:
- sh: ordered dimensions.
- sx: array strides sorted in loop order.
For all returned arrays, the first element corresponds to the innermost
loop, and the last element corresponds to the outermost loop.
Parameters
----------
shape: ArrayLikeObject<integer>
Array dimensions.
stridesX: ArrayLikeObject<integer>
Array strides.
Returns
-------
out: Object
Loop interchange data.
out.sh: Array<integer>
Ordered dimensions.
out.sx: Array<integer>
Array strides sorted in loop order.
Examples
--------
> var x = {{alias:@stdlib/ndarray/array}}( [ [ 1, 2 ], [ 3, 4 ] ] );
> var o = {{alias}}( x.shape, x.strides )
{...}
See Also
--------