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

Function simple_mod

src/backend/cpu/kernel/shift.hpp:18–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16namespace kernel {
17
18static inline dim_t simple_mod(const dim_t i, const dim_t dim) {
19 return (i < dim) ? i : (i - dim);
20}
21
22template<typename T>
23void shift(Param<T> out, CParam<T> in, const af::dim4 sdims) {

Callers 1

shiftFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected