There is no support within HDF5 for a complex number datatype. The norm for both MATLAB and h5py seems to be to create a custom H5COMPOUND datatype that encodes the real and imaginary parts separately, and to save the data in this format.
This means we need to adapt to this when reading our input file, for example when reading in the DTilde array. By the looks of things, when handling a .mat input we will need to define a compound datatype that can handle the format below:
IE a compound datatype that has a real and imag member.
Pertains to #70 and #285.
There is no support within HDF5 for a complex number datatype. The norm for both MATLAB and
h5py
seems to be to create a customH5COMPOUND
datatype that encodes the real and imaginary parts separately, and to save the data in this format.This means we need to adapt to this when reading our input file, for example when reading in the
DTilde
array. By the looks of things, when handling a.mat
input we will need to define a compound datatype that can handle the format below:IE a compound datatype that has a
real
andimag
member.