3
0
mirror of https://github.com/triqs/dft_tools synced 2024-11-01 11:43:47 +01:00
dft_tools/doc/reference/c++/gf/gf_retime.rst

50 lines
935 B
ReStructuredText
Raw Normal View History

2013-08-22 16:55:51 +02:00
.. highlight:: c
.. _gf_retime:
gf<retime>
===================================================
This is a specialisation of :ref:`gf_and_view` for imaginary Matsubara frequencies.
Domain & mesh
----------------
Singularity
-------------
Interpolation method
---------------------
2013-09-18 15:13:23 +02:00
Linear interpolation on the mesh.
2013-08-22 16:55:51 +02:00
Data storage
---------------
2013-09-18 15:13:23 +02:00
* `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.
2013-08-22 16:55:51 +02:00
HDF5 storage convention
---------------------------
2013-09-18 15:13:23 +02:00
h5 tag : `ReTime`
2013-08-22 16:55:51 +02:00
Examples
---------
.. compileblock::
2013-09-18 15:13:23 +02:00
#include <triqs/gfs/retime.hpp>
2013-08-22 16:55:51 +02:00
using namespace triqs::gfs;
2013-09-18 15:13:23 +02:00
2013-08-22 16:55:51 +02:00
int main() {
2013-09-18 15:13:23 +02:00
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} };
2013-08-22 16:55:51 +02:00
};