Commit 5ab3e99
Fix checks in af::seq() & indexing/assignment fns
* Implement convert2Cononical helper function that converts
the user provided af::seq to a canonical form where the
sequences begin and end lie within the [0,len] range of
the input array along a specified dimension.
* Refactors moddims & flatten functions to enable using
them from `src/api/c/` level
* Adds createHandle version that accepts af_array
* Reduces c-api calls to as minimum as possible in
`src/api/c/index.cpp` and `src/api/c/assign.cpp`
* Fixes style in lookup source files and asign test
(cherry picked from commit 36dfda8)1 parent cca98cb commit 5ab3e99
17 files changed
Lines changed: 574 additions & 445 deletions
File tree
- include/af
- src
- api
- cpp
- c
- backend
- cpu
- cuda
- opencl
- test
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
| 79 | + | |
| 80 | + | |
80 | 81 | | |
81 | 82 | | |
82 | 83 | | |
83 | | - | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
87 | | - | |
88 | | - | |
| 86 | + | |
| 87 | + | |
89 | 88 | | |
90 | 89 | | |
91 | 90 | | |
92 | 91 | | |
93 | 92 | | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
| 93 | + | |
109 | 94 | | |
110 | 95 | | |
111 | 96 | | |
| |||
0 commit comments