[SciPy-User] Problem with handling big matrices with Windows

Antonelli Maria Rosaria maria-rosaria.antonelli at curie.fr
Wed Jun 11 06:16:07 EDT 2014


Thank you very much !
I just wanted to be sure that there are not other solution.
Do Blaze say anything to you ?
Otherwise I will split my matrix by two !
Best, 
Rosa

On 6/11/14 12:13 PM, "Matthieu Brucher" <matthieu.brucher at gmail.com> wrote:

>You will need to construct this array bits by bits, not in one go. No
>other solution, as it would be even worse in terms of memory usage.
>
>2014-06-11 11:12 GMT+01:00 Antonelli Maria Rosaria
><maria-rosaria.antonelli at curie.fr>:
>> Yes, thank you,.
>> But later I will have to assign a matrix to float to fpŠ
>> Best,
>> Rosa
>>
>> From: Da¼id <davidmenhur at gmail.com>
>> Reply-To: SciPy Users List <scipy-user at scipy.org>
>> Date: Wednesday, June 11, 2014 12:07 PM
>> To: SciPy Users List <scipy-user at scipy.org>
>> Subject: Re: [SciPy-User] Problem with handling big matrices with
>>Windows
>>
>> On 11 June 2014 12:01, Antonelli Maria Rosaria
>> <maria-rosaria.antonelli at curie.fr> wrote:
>>>
>>> I can np.memmap of that size, but when I ask to assign a zeros matrix
>>>of
>>> the same size to the np.memmap, it gives the same error :
>>> fp = np.memmap(filename, dtype='float, mode ='w+', shape(80, 100, 384,
>>> 285))
>>> fp = zeros((80, 100, 384, 285)
>>
>>
>> You are not assigning values, but just replacing the memap object by a
>>new
>> matrix. You can zero the matrix by doing:
>>
>> fp = np.memap(...)
>> fp[:] = 0
>>
>> _______________________________________________
>> SciPy-User mailing list
>> SciPy-User at scipy.org
>> http://mail.scipy.org/mailman/listinfo/scipy-user
>>
>
>
>
>-- 
>Information System Engineer, Ph.D.
>Blog: http://matt.eifelle.com
>LinkedIn: http://www.linkedin.com/in/matthieubrucher
>Music band: http://liliejay.com/
>_______________________________________________
>SciPy-User mailing list
>SciPy-User at scipy.org
>http://mail.scipy.org/mailman/listinfo/scipy-user




More information about the SciPy-User mailing list