title: Element-wise effecient multiplication of arrays of matrices
body: <p>Suppose <code>array_1</code> and <code>array_2</code> are two arrays of matrices of the same sizes. Is there any vectorised way of multiplying element-wise, the elements of these two arrays(which their elements' multiplication is well defined)?</p>
  
  <p>The dummy code:</p>
  
  <pre><code>def mat_multiply(array_1,array_2):
      size=np.shape(array_1)[0]
  
      result=np.array([])
      for i in range(size):
          result=np.append(result,np.dot(array_1[i],array_2[i]),axis=0)
      return np.reshape(result,(size,2))
  </code></pre>
  
  <p>example input:</p>
  
  <pre><code>a=[[[1,2],[3,4]],[[1,2],[3,4]]]
  b=[[1,3],[4,5]]
  </code></pre>
  
  <p>output:</p>
  
  <pre><code>[[  7.  15.]
   [ 14.  32.]]
  </code></pre>