title: How to raise a numpy.matrix to non-integer power?
body: <p>The <code>**</code> operator for <code>numpy.matrix</code> does not support non-integer power:</p>
  <pre><code>&gt;&gt;&gt; m
   matrix([[ 1. ,  0. ],
      [ 0.5,  0.5]])
  
  &gt;&gt;&gt; m ** 2.5
  TypeError: exponent must be an integer
  </code></pre>
  <p>What I want is</p>
  <pre><code>octave:14&gt; [1 0; .5 .5] ^ 2.5
  ans =
  
     1.00000   0.00000
     0.82322   0.17678
  </code></pre>
  <p>Can I do this with <code>numpy</code> or <code>scipy</code>?</p>
  <h3>Note:</h3>
  <p>this is NOT an element-wise operation. It is an matrix (in linear algebra) raised to some power, as talked in <a href="https://math.stackexchange.com/questions/16739/arbitrary-non-integer-power-of-a-matrix">this post</a>.</p>