I am new to python and numpy.

When I wrote: zeros((20000,20000),int), it returned "MemoryError".

Does this mean that this array exceeds python's memory limit?

Is there a way to define such big an array in python?

Thanks.

On a 32 bits system, it's more than 1.5 Gb of ram. It could be more than what your system can allocate for your process. I don't think it has much to do with python: the array is allocated by a malloc-like function in numpy. You should probably break your problem into smaller subproblems.

I see.

Thank you very much!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.