NESSi  v1.0.2
The NonEquilibrium Systems Simulation Library

◆ incr_timestep() [1/2]

template<typename T >
void cntr::herm_matrix_timestep< T >::incr_timestep ( int  tstp,
herm_matrix_timestep< T > &  g1,
weight 
)

Increase the value of the herm_matrix_timestep by weight \( * g(t) \)

Purpose

Increase the value of herm_matrix_timestep by a value of weight* \( g(t)\), where \( g(t)\) is a herm_matrix_timestep and weight is a constant scalar number

Parameters
tstp

time step tstp, identical to the time step of herm_matrix_timestep e(dummy argument in release mode)

g1

The herm_matrix_timestep which is added

weight

Scalar constant multiplication factor

Definition at line 1931 of file cntr_herm_matrix_timestep_impl.hpp.

1931  {
1932  assert(tstp == tstp_);
1933  assert(g1.size1_ == size1_ && g1.ntau_ == ntau_ && g1.tstp_ == tstp_);
1934  for (int m = 0; m < total_size_; m++)
1935  data_[m] += weight * g1.data_[m];
1936 }