NESSi  v1.0.2
The NonEquilibrium Systems Simulation Library

◆ incr() [1/2]

template<typename T >
void cntr::herm_matrix_timestep< T >::incr ( 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
g1

The herm_matrix_timestep which is added

weight

Scalar constant multiplication factor

Definition at line 1900 of file cntr_herm_matrix_timestep_impl.hpp.

1900  {
1901  int m;
1902  assert(g1.size1_ == size1_ && g1.ntau_ == ntau_ && g1.tstp_ == tstp_);
1903  for (m = 0; m < total_size_; m++)
1904  data_[m] += weight * g1.data_[m];
1905 }