similar matrix multiplication speed up

Hi,
I need to multiply many times matrices of the same type. Is there a way to speed this up:
M1^m*M2^m*...
where Mi = expm(alpha(i)*P) P being a matrix (hermitian). Already all Mi are precalculated and the main calculation cost of my problem now is the long matrix multiplication through all i.
Thanks

추가 답변 (3개)

Gary
Gary 2011년 6월 20일

0 개 추천

mtimesx might help to calculate the Mi matrices and its power but can it speed up the multiplication between Mi?
Thanks for the answer btw.

댓글 수: 1

Paulo Silva
Paulo Silva 2011년 6월 20일
Sorry but I can't help further, never used it.

댓글을 달려면 로그인하십시오.

Teja Muppirala
Teja Muppirala 2011년 6월 20일

0 개 추천

You can combine all of those multiplications into one expression using the properties of the matrix exponential.
Compare these 3 expressions:
P = rand(3);
P = P*P';
format long
% These are all the same
expm(2*P)^7*expm(4*P)^7*expm(5*P)^7
expm(14*P)*expm(28*P)*expm(35*P)
expm(7*(2+4+5)*P)
Gary
Gary 2011년 6월 20일

0 개 추천

Sorry the expression given at the beginning was kind of stupid. The Mi matrices are of the form Mi=expm(P0+alpha(i)P1) where P0 and P1 are hermitian and most of all non commutative. I cannot combine the terms.

카테고리

도움말 센터File Exchange에서 Operators and Elementary Operations에 대해 자세히 알아보기

질문:

2011년 6월 20일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by