The length has to be calculated for normalization anyway, and it is already returned by normalize_vn(vec, size).