NESSi  v1.0.2
The NonEquilibrium Systems Simulation Library

◆ herm_matrix_timestep() [5/6]

template<typename T >
cntr::herm_matrix_timestep< T >::herm_matrix_timestep ( const herm_matrix_timestep< T > &  g)

Initializes the herm_matrix_timestep class with the same layout as a given herm_matrix_timestep.

Purpose

Initializes the herm_matrix_timestep class with the same value of the time steps tstp, number of points on the imaginary branch ntau, matrix rank size1 and bosonic/fermionic symmetry sig. Works for scalar or square-matrix contour objects only.

Parameters
g

The herm_matrix according to which the class should be initialized

Definition at line 168 of file cntr_herm_matrix_timestep_impl.hpp.

168  {
169  tstp_ = g.tstp_;
170  ntau_ = g.ntau_;
171  size1_ = g.size1_;
172  size2_ = g.size1_;
173  element_size_ = size1_ * size1_;
174  total_size_ = g.total_size_;
175  if (total_size_ > 0) {
176  data_ = new cplx[total_size_];
177  memcpy(data_, g.data_, sizeof(cplx) * total_size_);
178  } else {
179  data_ = 0;
180  }
181  sig_ = g.sig_;
182 }