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
|
|
|
};
|
|
|
|
|