3
0
mirror of https://github.com/triqs/dft_tools synced 2024-11-01 03:33:50 +01:00
dft_tools/doc/reference/c++/gf/gf_refreq.rst

51 lines
928 B
ReStructuredText
Raw Normal View History

2013-08-22 16:55:51 +02:00
.. highlight:: c
.. _gf_refreq:
gf<refreq>
===================================================
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 : `ReFreq`
2013-08-22 16:55:51 +02:00
Examples
---------
.. compileblock::
2013-09-18 15:13:23 +02:00
#include <triqs/gfs/refreq.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 wmin=0, wmax=10; // Frequencies interval
auto n_freq=100; // Number of points
// We want a 2x2 matrix valued function on this mesh...
auto g = gf<refreq> { {wmin, wmax, n_freq}, {2,2} };
2013-08-22 16:55:51 +02:00
};
2013-09-18 15:13:23 +02:00