NESSi  v1.0.2
The NonEquilibrium Systems Simulation Library

◆ set_matrixelement() [6/6]

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

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

Purpose

Sets the (sub-) matrix elements (i1,i2) of all components to matrix elements (j1,j2) of the corresponding componentof a given herm_matrix of matrix 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.

j1

First index for submatrix of g.

j2

Second index for submatrix of g.

Definition at line 2445 of file cntr_herm_matrix_impl.hpp.

2445  {
2446  assert(nt_ == g.nt_);
2447  for(int tstp=-1;tstp<=nt_;tstp++){
2448  this->set_matrixelement(tstp,i1,i2,g,j1,j2);
2449  }
2450 }
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...