Hi guys,
i am calculating one resulting matrix by multiplying three matrices in the form
result=M1*M2/M3
All matrices are sparse. The dimensions are
M1: [71560x71560]
M2: [71560x23814]
M3: [23814x23814]
The calculation doesnt finish on my personal computer in a time of 12 hours. On my server it isnt finished after 12 hours too. Are there hints or other functions to improve the speed of calculation?
Regards Marc

댓글 수: 6

Bruno Luong
Bruno Luong 2018년 11월 5일
Possibly not without further knowledge about the matrices.
Marc Gebhardt
Marc Gebhardt 2018년 11월 5일
Which kind of information do you want to know?
try
whos M1
whos M2
whos M3
in command window and paste it here
Name Size Bytes Class Attributes
M1 71560x71560 4885064 double sparse
Name Size Bytes Class Attributes
M2 71560x23814 1335512 double sparse
Name Size Bytes Class Attributes
M3 23814x23814 1531064008 double sparse
M2 only contains ones. The other two matrices are filled with doubles.
Walter Roberson
Walter Roberson 2018년 11월 5일
It is common for sparse divided by sparse to yield a dense matrix, which might lead to a lot of swapping along the way.
Bruno Luong
Bruno Luong 2018년 11월 5일
편집: Bruno Luong 2018년 11월 5일
"Which kind of information do you want to know?"
Sparseness. Real? Complex? Symmetric? Hermitian? Definite Positive? Who knows else?
For sparse matrix, it is essential to have to correct ordering of unknowns/equations to avoid filling issue when doing inversion, if it's possible.

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

답변 (0개)

카테고리

도움말 센터File Exchange에서 Programming에 대해 자세히 알아보기

제품

릴리스

R2018b

질문:

2018년 11월 5일

편집:

2018년 11월 5일

Community Treasure Hunt

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

Start Hunting!

Translated by