Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
16
namespace kernel {
17
18
static inline dim_t simple_mod(const dim_t i, const dim_t dim) {
19
return (i < dim) ? i : (i - dim);
20
}
21
22
template<typename T>
23
void shift(Param<T> out, CParam<T> in, const af::dim4 sdims) {
Callers
1
shift
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected