afp_gradient

Calculate the gradients of the input.

Arguments

  1. Input array, values

Output

Resulting vector, position 0 - first order gradient, position 1 - second order gradient

Examples

afp_gradient