I am generating numpy array with :
p_desct = np.random.uniform(-1, 0.4, [5000000, 512])
Memory size almost ~20G
Same data in Eigen Matrix (C++):
Eigen::MatrixXf x_im = Eigen::MatrixXf::Random(5000000,512);
MemorySize ~9,6G
Is that the case numpy array doubles the memory usage of same matrix ?
or am I missing something here ?