note
moritz
<blockquote>Hi Monks.. I am trying to multiply matrices but i want someway to calculate the matrix to the power of x</blockquote>
<p>If your matrices are square, you can decompose your matrix into a product of the form <c>M = U * D * U^T</c> where U is a unitary matrix, U^T is its transposition, and <c>D</c> is a diagonal matrix. Calculating <c>M^x</c> then becomes <c>M^x = U * D^x * U^T</c>, and since D is diagonal calculating the xth power is the same as taking each component to the xth power.</p>
<p>How does the magical decomposition work? My linear algebra fu is a bit rusty, but [wp://Matrix decomposition] says the singular value decomposition (SVD) can help.</p>
<!-- Node text goes above. Div tags should contain sig only -->
<div class="pmsig"><div class="pmsig-616540">
[http://perl6.org/|Perl 6 - the future is here, just unevenly distributed]
</div></div>
1077660
1077660