title: How do I create a numpy recarray of arbitrary functions?
body: <p>I am creating a <code>numpy.recarray</code> as follows:</p>
  
  <pre class="lang-py prettyprint-override"><code>import numpy as np
  
  arr = np.array((1., 2.), dtype = [('alpha', np.float, 'beta', np.float)])
  arr = np.view(np.recarray)
  </code></pre>
  
  <p>How would I do this if instead of <code>np.floats</code> <code>alpha</code> and <code>beta</code> referred to arbitrary functions?</p>