Calculates the Manhattan distance between a and b.
a
b
The first vector.
The second vector.
The Manhattan distance between the two vectors.
An error if the vectors do not have the same length.
https://en.wikipedia.org/wiki/Manhattan_distance
Calculates the Manhattan distance between
a
andb
.