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

Function exampleFunction

src/api/cpp/exampleFunction.cpp:20–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18namespace af {
19
20array exampleFunction(const array& a, const af_someenum_t p) {
21 // create a temporary af_array handle
22 af_array temp = 0;
23
24 // call C-API function
25 AF_THROW(af_example_function(&temp, a.get(), p));
26
27 // array::get() returns af_array handle for the corresponding cpp af::array
28 return array(temp);
29}
30
31} // namespace af

Callers 1

exampleFunction · 0.50

Calls 3

af_example_functionFunction · 0.50
arrayClass · 0.50
getMethod · 0.45

Tested by

no test coverage detected