Speed up matrix operation
Ältere Kommentare anzeigen
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 Kommentare
Bruno Luong
am 5 Nov. 2018
Possibly not without further knowledge about the matrices.
Marc Gebhardt
am 5 Nov. 2018
madhan ravi
am 5 Nov. 2018
try
whos M1
whos M2
whos M3
in command window and paste it here
Marc Gebhardt
am 5 Nov. 2018
Walter Roberson
am 5 Nov. 2018
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
am 5 Nov. 2018
Bearbeitet: Bruno Luong
am 5 Nov. 2018
"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.
Antworten (0)
Kategorien
Mehr zu Programming finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!