NESSi  v1.0.2
The NonEquilibrium Systems Simulation Library

◆ set_constant() [2/2]

template<typename T >
template<class EigenMatrix >
void cntr::function< T >::set_constant ( EigenMatrix &  M)

Set all data to a constant matrix for the function class

Purpose

Set all data to a constant matrix for the function class

Parameters
M

The constant matrix as EigenMatrix

Definition at line 329 of file cntr_function_impl.hpp.

329  {
330  assert(M.rows() == size1_);
331  int t;
332  for(t=-1;t<=nt_;t++){
333  set_value(t,M);
334  }
335 }
int size1_
Number of the colums in the Matrix form.
int nt_
Maximum number of the time steps.
void set_value(int tstp, EigenMatrix &M)
Set matrix value at a specific time point