ArrayFire: diff2 (original) (raw)
Calculate the second order difference in an array over a given dimension. More...
| Functions | |
|---|---|
| AFAPI array | diff2 (const array &in, const int dim=0) |
| C++ Interface to calculate the second order difference in an array over a given dimension. More... | |
| AFAPI af_err | af_diff2 (af_array *out, const af_array in, const int dim) |
| C Interface to calculate the second order difference in an array over a given dimension. More... | |
Calculate the second order difference in an array over a given dimension.
This function runs across all batches in the input simultaneously.
◆ af_diff2()
C Interface to calculate the second order difference in an array over a given dimension.
Parameters
| [out] | out | second order numerical difference |
|---|---|---|
| [in] | in | input array |
| [in] | dim | dimension along which the difference occurs |
Returns
AF_SUCCESS, if function returns successfully, else an af_err code is given
C++ Interface to calculate the second order difference in an array over a given dimension.
Parameters
| [in] | in | input array |
|---|---|---|
| [in] | dim | dimension along which the difference occurs, 0 denotes the first non-singleton dimension |
Returns
second order numerical difference