NESSi  v1.0.2 The NonEquilibrium Systems Simulation Library

## ◆ incr()

template<typename T >
 void cntr::function< T >::incr ( function< T > & g, T weight = 1.0 )

Increase the function object by another function.

Purpose

Increase the function object by another function which is firstly multiplied with a weight..

Parameters
 g the function object whose data will be added to the original function object. weight the weight to be multiplied to the g function.

Definition at line 652 of file cntr_function_impl.hpp.

References cntr::function< T >::data_, and cntr::function< T >::nt_.

653 {
654  assert(this -> nt_ == g.nt_);
655  for(int m = 0; m < total_size_; m++)
656  {
657  this -> data_[m] += g.data_[m] * weight;
658  }
659 }
int total_size_
Size of the data stored for the function on the real-time axis including ; * size1 * size2 ...
cplx * data_
Pointer to the function in the Matrix form on the real-time axis ( ) ; &#39;data_+ element_size&#39; corresp...
int nt_
Maximum number of the time steps.