title: How can I calculate matrix exponential in the fastest way in Python?
body: <p>I would like to calculate the matrix exponential in Python.
  I found one way ("scipy.linalg.expm()"), but it takes long time (e.g. 30[sec] for 5000×5000 matrix).</p>
  
  <pre class="lang-py prettyprint-override"><code>matrix_exponential = scipy.linalg.expm(matrix)
  </code></pre>
  
  <p>Is there any faster way to calculate matrix exponential in Python?</p>
  
  <p>Thank you very much in advance.</p>