Now I see those are imported from numpy in the full code but not in the given snippets.  It's confusing to careful readers because all the other numpy funcs are called with `np.`.