3
0
mirror of https://github.com/triqs/dft_tools synced 2024-11-01 11:43:47 +01:00
dft_tools/doc/reference/c++/arrays/h5_complex.rst
Olivier Parcollet f2c7d449cc First commit : triqs libs version 1.0 alpha1
for earlier commits, see TRIQS0.x repository.
2013-07-17 19:24:07 +02:00

16 lines
554 B
ReStructuredText

.. highlight:: c
Issue with the complex numbers
============================================================================
There is no standard representation of the complex numbers `std::complex<T>` in hdf5.
The classes therefore represent them as arrays of `T` with one more dimension, and
adding a tag *_complex_* to the array for identification when rereading.
* This is compatible with the ALPS 2.0 storage.
* This is **not** compatible with the regular h5py storage for complex.
The conversion is made by HDFArchive class automatically.