NESSi  v1.0.2
The NonEquilibrium Systems Simulation Library

◆ density_matrix() [1/2]

template<typename T >
void cntr::herm_matrix_timestep_view< T >::density_matrix ( int  tstp,
std::complex< T > &  M 
)

Return single particle density matrix from herm_matrix_timestep_view.

Purpose

Return single particle density matrix (occupation) from herm_matrix_timestep_view Works for scalar.

Parameters
tstp

timestep index

M

density matrix, returned as complex number

Definition at line 2096 of file cntr_herm_matrix_timestep_view_impl.hpp.

2096  {
2097  assert(tstp==tstp_);
2098  if (tstp_ == -1) {
2099  M = -(*matptr(ntau_));
2100  } else {
2101  M = CPLX(0.0, sig_)*(*lesptr(tstp_));
2102  }
2103 }