Calculate the gradients of the input. More...
Functions | |
| void | grad (array &dx, array &dy, const array &in) |
| C++ Interface for calculating the gradients. | |
| af_err | af_gradient (af_array *dx, af_array *dy, const af_array in) |
| C Interface for calculating the gradients. | |
Calculate the gradients of the input.
dx is the gradient along the 1st dimension of in. dy is the gradient along the 2nd dimension of in.
The gradients along the first and second dimensions are calculated simultaneously
C Interface for calculating the gradients.
| [out] | dx | the gradient along first dimension |
| [out] | dy | the gradient along second dimension |
| [in] | in | is the input array |