Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Out of memory error

조회 수: 1 (최근 30일)
nilsotto
nilsotto 2016년 2월 25일
마감: MATLAB Answer Bot 2021년 8월 20일
Hi, When I'm trying to multiply a [112880x10] matrix with another matrix of [10x125000], I get an error message "Out of memory". Is there a way of getting around this problem (using special algorithms or similar)?

답변 (1개)

Andreas Goser
Andreas Goser 2016년 2월 25일
One double has 2 bytes.
So the 112880x10 matrix has 2257600 bytes. Fine 10x125000 -> 2500000 bytes. Also Fine
But multiplying should give a 112880x125000 matrix! That is 2.8220e+10 bytes == 26 Gigabytes! Nut sure if this works, but is definitely a challenge. Maybe you are happy with singles too? Also I assume you have a 64 Bit MATLAB on 64 bit OS? You might want to test with slightly smaller matrices where the limit is.
  댓글 수: 3
nilsotto
nilsotto 2016년 2월 25일
I was thinking about triangularization or something similar?!
Walter Roberson
Walter Roberson 2016년 2월 25일
Triangularization does not reduce the amount of memory required for the final matrix, and that is your problem rather than "working memory" to do the calculation in.

이 질문은 마감되었습니다.

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by