NESSi  v1.0.2
The NonEquilibrium Systems Simulation Library

◆ incr() [2/2]

template<typename T >
void cntr::herm_matrix< T >::incr ( herm_matrix< T > &  g)

Adds a herm_matrix 'g' to the herm_matrix at all time steps.

Purpose

Performs the operation \(C \rightarrow C + g\), where \(C\) is the herm_matrix, \(g\) is a herm_matrix.

Parameters
g

[herm_matrix] The herm_matrix \(g\) which is added to the herm_matrix.

Definition at line 2806 of file cntr_herm_matrix_impl.hpp.

2806  {
2807  assert(g.nt_ >= nt_ && g.ntau_ == ntau_ && g.size1_ == size1_
2808  && "g.nt_ >= nt_ && g.ntau_ == ntau_ && g.size1_ == size1_");
2809  cplx alpha = (1.0,0.0);
2810  for (int m = -1; m <= nt_; m++)
2811  this->incr_timestep(m, g, alpha);
2812 }
std::complex< T > cplx
void incr_timestep(int tstp, herm_matrix_timestep< T > &timestep, cplx alpha)
Adds a herm_matrix_timestep with given weight to the herm_matrix.