Documentation


Compute the difference along a dimension. More...
Modules  
diff  
The C++ interface for diff.  
af_diff  
The C interface for diff.  
Compute the difference along a dimension.
The difference functions compute either the first or second order difference between adjacent elements in an array along a given dimension.
diff1 computes the first order difference (basic adjacent difference) along a given dimension. If the input array has N elements in the dimension of interest, the resulting array has N1 elements along the given dimension.
diff2 computes the second order difference (i.e. the difference between the adjacent first order differences) along a given dimension.