Hi,
to read/write with complex numbers you can create a new datatype, to
be used in the dataset read/write function.
franZ
typedef struct {
double re; /*real part*/
double im; /*imaginary part*/
} complex_t;
hid_t complex_id = H5Tcreate (H5T_COMPOUND, sizeof (complex_t));
H5Tinsert (complex_id, “real”, HOFFSET(complex_t,re),
H5T_NATIVE_DOUBLE);
H5Tinsert (complex_id, “imaginary”, HOFFSET(complex_t,im),
H5T_NATIVE_DOUBLE);
On Fri, Dec 10, 2010 at 10:39 AM, Roger Martin <[email protected]> wrote:
> Hi,
>
> What is a good way to store arrays of complex numbers?
>
> Particularly MKL (Intel® Math Kernel Library) has a data type MKL_Complex16
> which is two doubles side by side and I make very large arrays of them.
>
>
>
>
>
> _______________________________________________
> Hdf-forum is for HDF software users discussion.
> [email protected]
> http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org
>
>
_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org