You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 2a398d5
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: base/binary-loop-interchange-order/docs/types/index.d.ts
+9Lines changed: 9 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -45,6 +45,11 @@ interface LoopOrderObject {
45
45
* Output array strides sorted in loop order.
46
46
*/
47
47
sz: Array<number>;
48
+
49
+
/**
50
+
* Dimension indices sorted in loop order.
51
+
*/
52
+
idx: Array<number>;
48
53
}
49
54
50
55
/**
@@ -58,6 +63,7 @@ interface LoopOrderObject {
58
63
* - **sx**: first input ndarray strides sorted in loop order.
59
64
* - **sy**: second input ndarray strides sorted in loop order.
60
65
* - **sz**: output ndarray strides sorted in loop order.
66
+
* - **idx**: dimension indices sorted in loop order.
61
67
*
62
68
* - When iterating over the elements of a multi-dimensional array, accessing elements which are closer in memory can improve performance. To this end, loop interchange is a technique used in loop nest optimization to improve locality of reference and take advantage of CPU cache.
Copy file name to clipboardExpand all lines: base/loop-interchange-order/docs/types/index.d.ts
+5-1Lines changed: 5 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -30,13 +30,14 @@ import { ArrayLike } from '@stdlib/types/array';
30
30
* - The returned array has the following elements:
31
31
*
32
32
* ```text
33
-
* [ <shape>, ...<strides> ]
33
+
* [ <shape>, ...<strides>, <idx> ]
34
34
* ```
35
35
*
36
36
* where
37
37
*
38
38
* - **shape**: dimensions sorted in loop order.
39
39
* - **...strides**: strides for each respective ndarray sorted in loop order.
40
+
* - **idx**: dimension indices sorted in loop order.
40
41
*
41
42
* - When iterating over the elements of a multi-dimensional array, accessing elements which are closer in memory can improve performance. To this end, loop interchange is a technique used in loop nest optimization to improve locality of reference and take advantage of CPU cache.
42
43
*
@@ -71,6 +72,9 @@ import { ArrayLike } from '@stdlib/types/array';
0 commit comments