Recently i research all kinds of distance calculation methods,like “Euclidean Distance”," Manhattan Distance"

i know a litte ways

```
import torch
import torch.nn.functional as F
a= torch.arange(2,5).view(1,4).float()
print(a)
b=torch.tensor([[2,2],[1,2]]).view(1,4).float()
c=F.pairwise_distance(a,b,p=2)
print(c)
```

when “p” get 2 ,it caculates **Euclidean Distance**,when “p"get 1,it caculates **Manhattan Distance**,

but i want know is there any function can quicky caculate " **Hamming Distance**” " **Jaccard Distance**" " **Mahalanobis distance**" ?