title: How can I get the product of all elements in a one dimensional numpy array
body: <p>I have a one dimensional NumPy array:</p>
  
  <pre><code>a = numpy.array([2,3,3])
  </code></pre>
  
  <p>I would like to have the product of all elements, 18 in this case.</p>
  
  <p>The only way I could find to do this would be:</p>
  
  <pre><code>b = reduce(lambda x,y: x*y, a)
  </code></pre>
  
  <p>Which looks pretty, but is not very fast (I need to do this a lot).</p>
  
  <p>Is there a numpy method that does this? If not, what is the most efficient way of doing this? My real world arrays have 39 float elements.</p>