NESSi  v1.0.2
The NonEquilibrium Systems Simulation Library

◆ herm_matrix_timestep_view() [3/7]

Initializes the herm_matrix_timestep_view class with the same layout as a given herm_matrix_timestep 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. Works for scalar or square-matrix contour objects

Parameters
g

The herm_matrix_timestep according to which the class should be initialized

Definition at line 172 of file cntr_herm_matrix_timestep_view_impl.hpp.

References cntr::herm_matrix_timestep< T >::lesptr(), cntr::herm_matrix_timestep< T >::matptr(), cntr::herm_matrix_timestep< T >::retptr(), and cntr::herm_matrix_timestep< T >::tvptr().

173  {
174  tstp_ = g.tstp_;
175  ntau_ = g.ntau_;
176  size1_ = g.size1_;
177  size2_ = g.size2_;
178  element_size_ = size1_ * size2_;
179  sig_ = g.sig_;
180  if (tstp_ == -1) {
181  mat_ = g.matptr(0);
182  ret_ = 0;
183  les_ = 0;
184  tv_ = 0;
185  } else if (tstp_ >= 0) {
186  mat_ = 0;
187  ret_ = g.retptr(0);
188  les_ = g.lesptr(0);
189  tv_ = g.tvptr(0);
190  }
191 }
+ Here is the call graph for this function: