Added a weighted euclidean tensor metric.