pub fn lp_distance<T>(
x: &[T],
y: &[T],
p: i32,
) -> Result<T, IncompatiblePointsError>Expand description
Computes the L^p distance between x and y.
Works for any p>0. An IncompatiblePointsError is returned when x and y have different
lengths.