Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any fast method of matrix exponentiation?

Tags:

Is there any faster method of matrix exponentiation to calculate Mn (where M is a matrix and n is an integer) than the simple divide and conquer algorithm?

like image 516
Akashdeep Saluja Avatar asked Sep 07 '12 04:09

Akashdeep Saluja


People also ask

What type of matrix we take for matrix exponential?

In mathematics, the matrix exponential is a matrix function on square matrices analogous to the ordinary exponential function. It is used to solve systems of linear differential equations.


1 Answers

You could factor the matrix into eigenvalues and eigenvectors. Then you get

M = V^-1 * D * V 

Where V is the eigenvector matrix and D is a diagonal matrix. To raise this to the Nth power, you get something like:

M^n = (V^-1 * D * V) * (V^-1 * D * V) * ... * (V^-1 * D * V)     = V^-1 * D^n * V 

Because all the V and V^-1 terms cancel.

Since D is diagonal, you just have to raise a bunch of (real) numbers to the nth power, rather than full matrices. You can do that in logarithmic time in n.

Calculating eigenvalues and eigenvectors is r^3 (where r is the number of rows/columns of M). Depending on the relative sizes of r and n, this might be faster or not.

like image 191
Michael Avatar answered Sep 18 '22 16:09

Michael