title: Rewrite a double loop in a nicer and maybe shorter way
body: <p>I am wondering if the following code can be written in a somewhat nicer way. Basically, I want to calculate <code>z = f(x, y)</code> for a <code>(x, y)</code> meshgrid.</p>
  
  <pre><code>a = linspace(0, xr, 100)                                                                  
  b = linspace(0, yr, 100)                                                                  
  
  for i in xrange(100):
     for j in xrange(100):
        z[i][j] = f(a[i],b[j])
  </code></pre>