NESSi  v1.0.2
The NonEquilibrium Systems Simulation Library

◆ set_matrixelement() [5/6]

template<typename T >
void cntr::herm_matrix< T >::set_matrixelement ( int  i1,
int  i2,
herm_matrix< T > &  g 
)

Sets given matrix elements of all components to the for all the time components of a given herm_matrix of scaler type for all the time.

Purpose

Sets the (sub-) matrix elements (i1,i2) of all components to the components of a given herm_matrix of scaler type for all the time.

Parameters
i1

First index for submatrix.

i2

Second index for submatrix.

g

The herm_matrix from which the time steps are copied.

Definition at line 2410 of file cntr_herm_matrix_impl.hpp.

2410  {
2411  assert(nt_ == g.nt_);
2412  for(int tstp=-1;tstp<=nt_;tstp++){
2413  this->set_matrixelement(tstp,i1,i2,g);
2414  }
2415 }
void set_matrixelement(int tstp, int i1, int i2, herm_matrix_timestep< T > &timestep)
Sets given matrix elements of all components at time step tstp to the components of a given herm_mat...