added a vectorized factor api to gm