[petsc-users] Load dense matrices from hdf5

Smith, Barry F. bsmith at mcs.anl.gov
Fri Nov 30 17:10:08 CST 2018


   I assume you are ./configure PETSc with --with-scalar-type=complex? If so, the values in the file are the real and imaginary parts interlaced: That is 
r0 i0 r1 i1 ....   where r0 is the first matrix entry's real part and i0 is the first matrix imaginary part.

    Barry


> On Nov 30, 2018, at 5:04 PM, Sajid Ali <sajidsyed2021 at u.northwestern.edu> wrote:
> 
> If the matrix is filled with complex numbers is each complex number stored as a sequences of doubles ? Or is it better to split the matrix into real/imaginary and store each part separately?



More information about the petsc-users mailing list