NESSi  v1.0.2
The NonEquilibrium Systems Simulation Library

◆ set_matrixelement() [2/2]

template<typename T >
template<class GG >
void cntr::herm_matrix_timestep_view< T >::set_matrixelement ( int  i1,
int  i2,
GG &  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]} \). If \(t>-1\) then ret,les,tv components are set, otherwise mat. Works for scalar or square-matrix contour objects.

Parameters
i1

Row index of herm_matrix_timestep_view

i2

Column index of herm_matrix_timestep_view

g

The template argument from which the matrix element is given

j1

Row index of herm_matrix_timestep_view

j2

Column index of herm_matrix_timestep_view

Definition at line 1362 of file cntr_herm_matrix_timestep_view_impl.hpp.

1363  {
1364  herm_matrix_timestep_view<T> tmp(tstp_, g);
1365  set_matrixelement(i1, i2, tmp, j1, j2);
1366 }
void set_matrixelement(int i1, int i2, herm_matrix_timestep_view< T > &g, int j1, int j2)
Set the matrix element of for each component from