Clarify usage of `dist` (renamed from `dist_code`).
Vectorize numpy julia calc.