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

Daπid davidmenhur at gmail.com
Wed Jun 11 06:07:04 EDT 2014


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.scipy.org/pipermail/scipy-user/attachments/20140611/9f3020b8/attachment.html>


More information about the SciPy-User mailing list