NESSi  v1.0.2
The NonEquilibrium Systems Simulation Library

◆ set_constant() [1/2]

template<typename T >
void cntr::function< T >::set_constant ( cplx f0)

Set all data to a constant(scalar or matrix) for the function class

Purpose

Set all data to a constant(scalar or matrix) for the function class

Parameters
f0

the pointer of an array storing the constant data in the form a[i * size1_ + j] = matrix(i,j). For a scalar, the size of array should be 1.

Definition at line 308 of file cntr_function_impl.hpp.

308  {
309  int t;
310  for (t = -1; t <= nt_; t++)
311  element_set<T, LARGESIZE>(size1_, ptr(t), f0);
312 }
int size1_
Number of the colums in the Matrix form.
int nt_
Maximum number of the time steps.