libROM
libROM copied to clipboard
reading a numpy matrix in libROM/mfem
Is there an easy way to read a numpy matrix into libROM or MFEM?
Thanks,
Nachiket
Hi Nachiket. Unfortunately, we do not have the capability of reading numpy arrays in libROM yet, and the Python interface of libROM is still development. We do have the capability of reading vector data in CSV or HDF5 format that is readily available for use.
I used Numpy's tofile and fromfile functions which are easy to use.