NESSi  v1.0.2
The NonEquilibrium Systems Simulation Library

◆ operator=()

template<typename T >
herm_matrix_timestep_view< T > & cntr::herm_matrix_timestep_view< T >::operator= ( const herm_matrix_timestep_view< T > &  g)

Copy assignment operator for herm_matrix_timestep_view g class.

Purpose

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

Parameters
g

The herm_matrix_timestep_view according to which the class should be initialized

Definition at line 134 of file cntr_herm_matrix_timestep_view_impl.hpp.

134  {
135  if (this == &g)
136  return *this;
137  tstp_ = g.tstp_;
138  ntau_ = g.ntau_;
139  size1_ = g.size1_;
140  size2_ = g.size1_;
141  sig_ = g.sig_;
142  element_size_ = size1_ * size1_;
143  // copy pointers
144  ret_ = g.ret_;
145  les_ = g.les_;
146  tv_ = g.tv_;
147  mat_ = g.mat_;
148  return *this;
149 }