title: Python vectorization of matrix-vector operation
body: <p>I have a Matrix A with shape (2,2,N) and a Matrix V with shape (2,N)</p>
  
  <p>I want to vectorize the following:</p>
  
  <pre><code>F = np.zeros(N)
  for k in xrange(N):
      F[k] = np.dot( A[:,:,k], V[:,k] ).sum()
  </code></pre>
  
  <p>Any way this can be done with either tensordot or any other numpy function without explicit looping?</p>