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

Function grad

src/api/cpp/gradient.cpp:17–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15namespace af {
16
17void grad(array &rows, array &cols, const array &in) {
18 af_array rows_handle = 0;
19 af_array cols_handle = 0;
20 AF_THROW(af_gradient(&rows_handle, &cols_handle, in.get()));
21 rows = array(rows_handle);
22 cols = array(cols_handle);
23}
24
25} // namespace af

Callers 2

TESTFunction · 0.85
harris_demoFunction · 0.85

Calls 3

af_gradientFunction · 0.50
arrayClass · 0.50
getMethod · 0.45

Tested by

no test coverage detected