NESSi  v1.0.2
The NonEquilibrium Systems Simulation Library

◆ get_mat() [10/12]

template<typename T >
void cntr::get_mat ( const int  m,
cdmatrix &  G_mat,
herm_matrix_timestep_view< T > &  G,
herm_matrix_timestep_view< T > &  Gcc 
)

Returns the Matsubara component of a general contour function at given times.

Purpose

Returns the lesser component \( G^\mathrm{M}(\tau_m) \) at given imaginary time \( \tau_m\).

Parameters
m

[int] Index of time \( \tau_m\) .

G_mat

[complex<T>] The Matsubara component (scalar GF).

G

[herm_matrix_timestep_view] Contour function G

Gcc

[herm_matrix_timestep_view] Hermitian conjugate \(G^\ddagger\) of \(G\).

Definition at line 56 of file cntr_getset_herm_matrix_timestep_view_inc.hpp.

57  {
58  assert(m <= G.ntau());
59  assert(G.ntau() == Gcc.ntau());
60  assert(G.size1() == Gcc.size1());
61  assert(G.size2() == Gcc.size2());
62  assert(G.sig() == Gcc.sig());
63  int size1=G.size1(), size2=G.size2();
64  std::complex<T> *mat;
65 
66  mat = G.matptr(m);
67  map_ptr2matrix(size1, size2, mat, G_mat);
68 }