title: difference between numpy dot() and inner()
body: <p>What is the difference between</p>
  
  <pre><code>import numpy as np
  np.dot(a,b)
  </code></pre>
  
  <p>and</p>
  
  <pre><code>import numpy as np
  np.inner(a,b)
  </code></pre>
  
  <p>all examples I tried returned the same result. <a href="http://en.wikipedia.org/wiki/Dot_product" rel="noreferrer">Wikipedia</a> has the same article for both?! In <a href="http://docs.scipy.org/doc/numpy/reference/generated/numpy.inner.html" rel="noreferrer">the description</a> of <code>inner()</code> it says, that its behavior is different in higher dimensions, but I couldn't produce any different output. Which one should I use? </p>