NESSi  v1.0.2
The NonEquilibrium Systems Simulation Library

◆ set_matrixelement() [4/6]

template<typename T >
void cntr::herm_matrix_timestep< T >::set_matrixelement ( int  tstp,
int  i1,
int  i2,
herm_matrix_timestep< T > &  g,
int  j1,
int  j2 
)

Set the matrix element of \(C_{[i1,i2]}\) for each component from \( g_{[i1,i2]} \)

Purpose

Set the matrix element \(C_{[i1,i2]}\) for each component from \( g_{[i1,i2]} \). Use implementation of herm_matrix_timestep_view. Works for scalar or square-matrix contour objects.

Parameters
tstp

time step tstp, identical to the time step of herm_matrix_timestep

i1

Row index of herm_matrix_timestep

i2

Column index of herm_matrix_timestep

g

The herm_matrix_timestep from which the matrix element element is given

j1

Row index of herm_matrix_timestep

j2

Column index of herm_matrix_timestep

Definition at line 2173 of file cntr_herm_matrix_timestep_impl.hpp.

References cntr::herm_matrix_timestep_view< T >::set_matrixelement().

2174  {
2175  assert(tstp == tstp_);
2176  herm_matrix_timestep_view<T> tmp(g);
2177  herm_matrix_timestep_view<T> tmp1(*this);
2178  tmp1.set_matrixelement(i1, i2, tmp, j1, j2);
2179 }
+ Here is the call graph for this function: