NESSi  v1.0.2
The NonEquilibrium Systems Simulation Library

◆ smul()

template<typename T >
void cntr::function< T >::smul ( weight)

Multiply the function with a scalar


Multiply the function with a scalar. Function values at all times would be multiplied with the same scalar value.


the scalar to be multiplied with all function values

Definition at line 440 of file cntr_function_impl.hpp.

441 {
442  for(int m = 0; m < total_size_; m++)
443  data_[m] *= weight;
444 }
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...