[MMTK] modes to numpy arrays
rcrehuet at gmail.com
Wed Aug 31 09:44:15 UTC 2011
I would like to convert a NormalModes object into a numpy array. I tried:
modes = NormalModes(universe)
m_numpy = modes.array
m2_numpy = numpy.asarray(modes)
which do not give the same... (though it gives arrays with the same shape,
so they are not simple a transposition).
Curiously, modes.array and modes.array are also different, and in
np.all(modes.array==m2_numpy) is True. So m2_numpy seems to contain as
vectors, each mode. By then, what is modes.array...?
Thanks for any hint!
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the mmtk