title: Taking the log of each element in a numpy.ndarray?
body: <p>I currently struggling with taking the log of each element of an numpy.ndarray. </p>
  
  <p>According to the documentation should one be able to just <code>.log()</code>..</p>
  
  <p>But i cannot make it work?</p>
  
  <pre><code>&gt;&gt;&gt; import numpy
  &gt;&gt;&gt; x = numpy.random.rand(3,3)
  &gt;&gt;&gt; x
  array([[ 0.42631996,  0.13211157,  0.09500156],
         [ 0.5699495 ,  0.39852007,  0.55909279],
         [ 0.12059745,  0.40645911,  0.68107768]])
  &gt;&gt;&gt; x.log
  Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;
  AttributeError: 'numpy.ndarray' object has no attribute 'log'
  &gt;&gt;&gt; 
  </code></pre>