y=lab.dist(x,y) returns the 2-norm of (x-y).

y=lab.dist(x,y,p) returns the p-norm of (x-y).