A Friday 10 December 2010 16:39:48 Roger Martin escrigué:
> Hi,
>
> What is a good way to store arrays of complex numbers?
There is not a standard way (it would be nice if there was one). The
usual thing is to save them as a compound datatype, but people choose
different options for the names of the fields. Here are what I know:
* ("real", "imag") for Octave
* ("r", "i") for PyTables (but ("real", "imag") is ok too)
> 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.
May be there is a possibility to define an atomic datatype in HDF5, but
provided that you don't introduce padding between the fields of the
compound type, this works pretty similar to a larger, atomic type.
Hope this helps,
--
Francesc Alted
_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org