mirror of
https://github.com/triqs/dft_tools
synced 2024-12-27 06:43:40 +01:00
50 lines
935 B
ReStructuredText
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} };
|
|
};
|
|
|