NESSi  v1.0.2
The NonEquilibrium Systems Simulation Library

◆ get_data() [4/4]

template<typename T>
template<typename T >
void cntr::herm_matrix_timestep_view< T >::get_data ( CPLX *  ret,
CPLX *  les,
CPLX *  tv,
CPLX *  mat 
)

Return the data

Purpose

Return the data for each component in herm_matrix_timestep_view into the reserved memory Works for scalar or square-matrix contour objects

Parameters
*ret

Pointer to memory where ‘ret‘ component is copied

*les

Pointer to memory where ‘les‘ component is copied

*tv

Pointer to memory where ‘tv‘ component is copied

*mat

Pointer to memory where ‘mat‘ component is copied

Definition at line 1170 of file cntr_herm_matrix_timestep_view_impl.hpp.

1171  {
1172  if (tstp_ == -1) {
1173  memcpy(mat_, mat, sizeof(CPLX) * (ntau_ + 1) * element_size_);
1174  ret_ = 0;
1175  les_ = 0;
1176  tv_ = 0;
1177  } else if (tstp_ >= 0) {
1178  mat_ = 0;
1179  memcpy(ret_, ret, sizeof(CPLX) * (tstp_ + 1) * element_size_);
1180  memcpy(les_, les, sizeof(CPLX) * (tstp_ + 1) * element_size_);
1181  memcpy(tv_, tv, sizeof(CPLX) * (ntau_ + 1) * element_size_);
1182  }
1183 }