Hi,
I am trying to compute a (400000, 400000) dot product. As it will not fit into the memory, I am wondering if I could directly dump the dot product result matrix to disk as a HDF5 file.
I tried the following, but it did not work:
```
import tables
import numpy as np
x = np.random.random((400000, 3))
f = tables.open_file('test.hdf', 'w')
atom = tables.Atom.from_dtype(x.dtype)
out_arr = f.create_array(f.root, 'somename1', atom=atom, shape=(400000, 400000))
np.dot(x, x.T, out=out_arr)
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-6-3cd3f13a902d> in <module>()
----> 1 np.dot(x, x.T, out=out_arr)
TypeError: 'out' must be an array
```
I also tried to use np.memmap as output array. It worked, but it only uses one process for the computation, which may take a very long time.
I would appreciate if someone could give me some pointers or solutions.
Thank you.