NESSi  v1.0.2
The NonEquilibrium Systems Simulation Library

◆ get_value()

template<typename T >
template<class EigenMatrix >
void cntr::function< T >::get_value ( int  tstp,
EigenMatrix &  M 
) const

Get matrix value of this function object at a specific time point

Purpose

Get matrix value of this function object at a specific time point.

Parameters
tstp

the time step

M

the Eigen matrix in which the value will be stored

Definition at line 414 of file cntr_function_impl.hpp.

Referenced by cntr::interpolate_CF2(), cntr::propagator_exp(), cntr::vie2_timestep_sin(), and cntr::vie2_timestep_sin_omp().

414  {
415  int i1, i2;
416  const cplx *ft;
417  M.resize(size1_, size2_);
418  ft = ptr(tstp);
419  for (i1 = 0; i1 < size1_; i1++)
420  for (i2 = 0; i2 < size2_; i2++)
421  M(i1, i2) = ft[i1 * size2_ + i2];
422 }
int size2_
Number of the rows in the Matrix form.
int size1_
Number of the colums in the Matrix form.
std::complex< T > cplx
+ Here is the caller graph for this function: