| 49 | namespace arrayfire { |
| 50 | namespace common { |
| 51 | af_index_t createSpanIndex() { |
| 52 | static af_index_t s = [] { |
| 53 | af_index_t s; |
| 54 | s.idx.seq = af_span; |
| 55 | s.isSeq = true; |
| 56 | s.isBatch = false; |
| 57 | return s; |
| 58 | }(); |
| 59 | return s; |
| 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; |
no outgoing calls
no test coverage detected