Calculate the first order difference in an array over a given dimension. More...
Functions | |
| array | diff1 (const array &in, const int dim=0) |
| C++ Interface to calculate the first order difference in an array over a given dimension. | |
| af_err | af_diff1 (af_array *out, const af_array in, const int dim) |
| C Interface to calculate the first order difference in an array over a given dimension. | |
Calculate the first order difference in an array over a given dimension.
This function runs across all batches in the input simultaneously.
C Interface to calculate the first order difference in an array over a given dimension.
| [out] | out | first order numerical difference |
| [in] | in | input array |
| [in] | dim | dimension along which the difference occurs |
C++ Interface to calculate the first order difference in an array over a given dimension.
| [in] | in | input array |
| [in] | dim | dimension along which the difference occurs, 0 denotes the first non-singleton dimension |