Differences of adjacent elements of vector
Example
Diagonal vector:
A =
The length of diagonal vector: