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

Function convert2Canonical

src/api/c/index.cpp:62–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60}
61
62af_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

Callers 4

af_indexFunction · 0.85
af_index_genFunction · 0.85
af_assign_seqFunction · 0.85
af_assign_genFunction · 0.85

Calls 1

signbitFunction · 0.50

Tested by

no test coverage detected