NESSi  v1.0.2
The NonEquilibrium Systems Simulation Library

◆ incr() [1/2]

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

Adds a herm_matrix with given weight to the herm_matrix at all time steps.

Purpose

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

Parameters
g

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

alpha

[complex<T>] The weight in front of \(g\)`.

Definition at line 2782 of file cntr_herm_matrix_impl.hpp.

2782  {
2783  assert(g.nt_ >= nt_ && g.ntau_ == ntau_ && g.size1_ == size1_
2784  && "g.nt_ >= nt_ && g.ntau_ == ntau_ && g.size1_ == size1_");
2785  for (int m = -1; m <= nt_; m++)
2786  this->incr_timestep(m, g, alpha);
2787 }
void incr_timestep(int tstp, herm_matrix_timestep< T > &timestep, cplx alpha)
Adds a herm_matrix_timestep with given weight to the herm_matrix.