Efficient Matrix Multiplication
이전 댓글 표시
I have A(2000x5000). I need to perform the following:
P1 = A(:,1)*A(:,1)';
for i=2:5000
P1 = P1 + AA(:,i)*A(:,i)'
end
What is the most efficient way to do above? It takes so much time to do it right now due to size of the arrays.
댓글 수: 3
Walter Roberson
2011년 2월 26일
What is AA in this?
the cyclist
2011년 2월 26일
From his initialization step, I would infer that "AA" is just a typo of "A."
Jan
2011년 2월 27일
Just an actually too obvious comment: If AA is not typo, A*A' is not a matching solution. So, Sam Da, we need your help.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!