LLNL / libROM

Model reduction library with an emphasis on large scale parallelism and linear subspace methods
https://www.librom.net
Other
198 stars 36 forks source link

reading a numpy matrix in libROM/mfem #204

Open gokhalen opened 1 year ago

gokhalen commented 1 year ago

Is there an easy way to read a numpy matrix into libROM or MFEM?

Thanks,

Nachiket

siuwuncheung commented 1 year ago

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.

gokhalen commented 1 year ago

I used Numpy's tofile and fromfile functions which are easy to use.