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

Function batchFunc

src/api/cpp/gfor.cpp:31–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29}
30
31array batchFunc(const array &lhs, const array &rhs, batchFunc_t func) {
32 if (gforGet()) {
33 AF_THROW_ERR("batchFunc can not be used inside GFOR", AF_ERR_ARG);
34 }
35 gforSet(true);
36 array res = func(lhs, rhs);
37 gforSet(false);
38 return res;
39}
40
41} // namespace af

Callers 1

predictFunction · 0.85

Calls 2

gforGetFunction · 0.85
gforSetFunction · 0.85

Tested by

no test coverage detected