libROM icon indicating copy to clipboard operation
libROM copied to clipboard

reading a numpy matrix in libROM/mfem

Open gokhalen opened this issue 1 year ago • 2 comments

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

Thanks,

Nachiket

gokhalen avatar Apr 28 '23 10:04 gokhalen

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.

siuwuncheung avatar May 31 '23 21:05 siuwuncheung

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

gokhalen avatar Jun 01 '23 03:06 gokhalen