Squared p-distances
pdist(x, p)
x
numeric matrix
p
p>0 the Minkoswki distance
squared Minkowski distance matrix