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

greg whittier gregwh@gmail....
Wed Jun 9 12:29:11 CDT 2010


On Wed, Jun 9, 2010 at 1:16 PM, Alan G Isaac <aisaac@american.edu> wrote:
> On 6/9/2010 12:49 PM, greg whittier wrote:
>> Is there a way to do A*A.T without two
>> copies of A?
>
> Does this do what you want?
> Alan Isaac
>>>> np.tensordot(a,a,axes=(-1,-1))

This seems to suffer from the same problem.  A temporary array is
being creating somewhere causing a MemoryError.  I did learn a new
function though!

Thanks,
Greg


More information about the NumPy-Discussion mailing list