Fixed PairwiseDistance example