comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Unable to allocate memory
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Unable to allocate memory [message #85806 is a reply to message #73567] Tue, 10 September 2013 13:43 Go to previous message
sivan is currently offline  sivan
Messages: 13
Registered: August 2012
Junior Member
Thanks for the information.
I have missed the point.

On Tuesday, September 10, 2013 11:02:01 PM UTC+3, suicida...@gmail.com wrote:
> On Tuesday, September 10, 2013 1:57:48 PM UTC-6, sivan wrote:
>
>> Hi all,
>
>>
>
>>
>
>>
>
>> I know there are plenty of topics corresponding to this problem but I did not find a clear answer.
>
>>
>
>> I wrote:
>
>>
>
>>
>
>>
>
>> IDL> logage=dblarr(1259200)
>
>>
>
>> IDL> number=91
>
>>
>
>> IDL> ologlum=9.0d*(findgen(number))/(number-1)-3
>
>>
>
>> IDL> loglm=dblarr(1259200)
>
>>
>
>> IDL> likelihood=dblarr(1259200)
>
>>
>
>> IDL> g1=transpose(ologlum##replicate(1d,n_elements(logage)))
>
>>
>
>> IDL> g2=loglm#replicate(1d,n_elements(logage))
>
>>
>
>> % Unable to allocate memory: to make array.
>
>>
>
>> Cannot allocate memory
>
>>
>
>> % Execution halted at: $MAIN$
>
>>
>
>>
>
>>
>
>> I also tried these:
>
>>
>
>>
>
>>
>
>> IDL> g1=transpose(temporary(ologlum)##temporary(replicate(1d,n_el ements(logage))))
>
>>
>
>> IDL> g2=temporary(loglm)#temporary(replicate(1d,n_elements(logage )))
>
>>
>
>> % Unable to allocate memory: to make array.
>
>>
>
>> Cannot allocate memory
>
>>
>
>> % Execution halted at: $MAIN$
>
>>
>
>>
>
>>
>
>> It doesn't change anything.
>
>>
>
>>
>
>>
>
>> I use Ubuntu 12.04.03 (amd64), 8GB RAM and IDL 7.1.1.
>
>>
>
>>
>
>>
>
>> I hope there is a solution to this problem.
>
>>
>
>> Thanks in advice,
>
>>
>
>> Sivan.
>
>
>
> The error message is pretty self-explanitory...you don't have enough memory.
>
>
>
> "#" performs a matrix multiplication. The number of elements in the result is the product of the number of elements in the inputs. Your g2=loglm#replicate(1d,n_elements(logage)) command would result in a 1259200x1259200 = 1585584640000 element array as the output. At double precision (8 bytes per element), that would require nearly 12 TB (yes, terabytes) of RAM to hold.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Unable to allocate memory
Next Topic: LABEL_REGION on large array --> segmentation fault, please HELP !!

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 03:14:06 PDT 2025

Total time taken to generate the page: 0.40153 seconds