[Numpy-discussion] MemoryError with dot(A, A.T) where A is 800MB on 32-bit Vista

greg whittier gregwh at gmail.com
Wed Jun 9 13:06:12 EDT 2010


On Wed, Jun 9, 2010 at 12:57 PM, "V. Armando Solé" <sole at esrf.fr> wrote:
> greg whittier wrote:
>> a = np.ones((400, 500000), dtype=np.float32)
>> c = np.dot(a, a.T)
>>
>>
> In such cases I create a matrix of zeros with the final size and I fill
> it with a loop of dot products of smaller chunks of the original a matrix.
>
> The MDP package also does something similar.
>
> Armando
>

Thanks.  I've done that as a workaround, but I was hoping there was a
more elegant, "native" solution.

Thanks for the pointer to MDP by the way!  Looks very interesting.



More information about the NumPy-Discussion mailing list