3
0
mirror of https://github.com/triqs/dft_tools synced 2024-12-27 06:43:40 +01:00
dft_tools/doc/reference/c++/gf/gf_retime.rst
2013-10-22 21:29:40 +02:00

50 lines
935 B
ReStructuredText

.. highlight:: c
.. _gf_retime:
gf<retime>
===================================================
This is a specialisation of :ref:`gf_and_view` for imaginary Matsubara frequencies.
Domain & mesh
----------------
Singularity
-------------
Interpolation method
---------------------
Linear interpolation on the mesh.
Data storage
---------------
* `data_t` : 3d array (C ordered) of complex<double>.
* g.data()(i, range(), range()) is the value of g for the i-th point of the mesh.
HDF5 storage convention
---------------------------
h5 tag : `ReTime`
Examples
---------
.. compileblock::
#include <triqs/gfs/retime.hpp>
using namespace triqs::gfs;
int main() {
double tmin=0, tmax=10; // the time interval
auto n_times=100; // we will have 100 points
//we want a 2x2 matrix-valued Green function
auto g=gf<retime>{ {tmin, tmax, n_times} , {2,2} };
};