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

Matthieu Brucher matthieu.brucher at gmail.com
Wed Jun 11 06:13:58 EDT 2014


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/



More information about the SciPy-User mailing list