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

Function where

src/api/cpp/where.cpp:16–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14
15namespace af {
16array where(const array& in) {
17 if (gforGet()) {
18 AF_THROW_ERR("WHERE can not be used inside GFOR", AF_ERR_RUNTIME);
19 }
20
21 af_array out = 0;
22 AF_THROW(af_where(&out, in.get()));
23 return array(out);
24}
25} // namespace af

Callers 1

indexMethod · 0.70

Calls 4

gforGetFunction · 0.85
af_whereFunction · 0.50
arrayClass · 0.50
getMethod · 0.45

Tested by

no test coverage detected