title: Opposite of numpy.broadcast_to
body: <p>Is there an opposite of <a href="https://docs.scipy.org/doc/numpy-1.13.0/reference/generated/numpy.broadcast_to.html" rel="nofollow noreferrer"><code>numpy.broadcast_to</code></a>, e.g. <code>numpy.project_to(array, function, axis)</code>?</p>
  
  <pre><code>np.project_to(
    np.array([[1,1,1], [2,1,3], [2,2,2]], dtype=float),
    lambda x, y: x/y,
    axis=1)
  </code></pre>
  
  <p>which would return</p>
  
  <p><code>array([ 1., 0.66666667,  0.5])</code></p>