MCPcopy Create free account
hub / github.com/arrayfire/arrayfire / createSpanIndex

Function createSpanIndex

src/api/c/index.cpp:51–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49namespace arrayfire {
50namespace common {
51af_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
62af_seq convert2Canonical(const af_seq s, const dim_t len) {
63 double begin = signbit(s.begin) ? (len + s.begin) : s.begin;

Callers 3

af_index_genFunction · 0.85
af_assign_genFunction · 0.85
pointListFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected