| 15 | namespace af { |
| 16 | |
| 17 | void 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 |
no test coverage detected