title: How to raise a numpy array to a power? (corresponding to repeated matrix multiplications, not elementwise)
body: <p>I want to raise a 2-dimensional numpy <code>array</code>, let's call it <code>A</code>, to the power of some number <code>n</code>, but I have thus far failed to find the function or operator to do that.  </p>
  
  <p>I'm aware that I could cast it to the <code>matrix</code> type and use the fact that then (similar to what would be the behaviour in Matlab), <code>A**n</code> does just what I want, (for <code>array</code> the same  expression means elementwise exponentiation). Casting to <code>matrix</code> and back seems like a rather ugly workaround though.  </p>
  
  <p>Surely there must be a good way to perform that calculation while keeping the format to <code>array</code>?</p>