make apply_numpy_function public and have sum, min, max return
projections by default