| 60 | } |
| 61 | |
| 62 | af_seq convert2Canonical(const af_seq s, const dim_t len) { |
| 63 | double begin = signbit(s.begin) ? (len + s.begin) : s.begin; |
| 64 | double end = signbit(s.end) ? (len + s.end) : s.end; |
| 65 | |
| 66 | return af_seq{begin, end, s.step}; |
| 67 | } |
| 68 | } // namespace common |
| 69 | } // namespace arrayfire |
| 70 |
no test coverage detected