I'm working with large arrays (900, 1000, 10,000) and I need to do simple computations (multiply, divide, etc.). However, I am receiving memory errors. Is there a way to do the following more efficiently, or to declare memory needs in python? Here is what I'm trying to do:
from __future__ import division
import numpy as np
x = np.random.binomial(1, .1, (900,1000, 10000))
y = np.random.binomial(2, .1, (1000,10000))
z = x/y # Or z = np.divide(x,y)
The objects "x" and "y" are made, but I cannot calculate "z".
Thanks.