NESSi  v1.0.2
The NonEquilibrium Systems Simulation Library

◆ herm_matrix_timestep_view() [7/7]

template<typename T >
cntr::herm_matrix_timestep_view< T >::herm_matrix_timestep_view ( int  tstp,
herm_matrix_timestep_view< T > &  g 
)

Initializes the herm_matrix_timestep_view class with the same layout as a given herm_matrix_timestep_view g.

Purpose

Initializes and copy the herm_matrix_timestep_view class from the herm_matrix_timestep with the same number of time steps nt, number of points on the imaginary branch ntau, matrix rank size1 and bosonic/fermionic symmetry sig. No data, only pointers are copied. First argument tstp is redundant, but present due to the safety [and historical] reason. Works for scalar or square-matrix contour objects

Parameters
tstp

Index of time

g

The herm_matrix_timestep according to which the class should be initialized

Definition at line 263 of file cntr_herm_matrix_timestep_view_impl.hpp.

264  {
265  assert(tstp == g.tstp_);
266 
267  tstp_ = g.tstp_;
268  ntau_ = g.ntau_;
269  size1_ = g.size1_;
270  size2_ = g.size1_;
271  element_size_ = size1_ * size1_;
272  sig_ = g.sig_;
273  // copy pointers
274  ret_ = g.ret_;
275  les_ = g.les_;
276  tv_ = g.tv_;
277  mat_ = g.mat_;
278 }