NESSi  v1.0.2
The NonEquilibrium Systems Simulation Library

◆ set_timestep_matrix_pseudo()

template<typename T , class Matrix >
void cntr::set_timestep_matrix_pseudo ( int  tstp,
matrix< T > &  G,
std::vector< Matrix > &  data 
)

Definition at line 1082 of file cntr_herm_pseudo_impl.hpp.

References set_timestep_pseudo().

1082  {
1083  int i,l,m,sg,dim,ntau=G.ntau(),nmax=(tstp<0 ? ntau+1 : ntau+2*tstp+3);
1084  std::complex<T> *data1;
1085  assert((int)data.size()>=nmax);
1086  dim=G.size1();
1087  sg=dim*dim;
1088  data1=new std::complex<T> [nmax*sg];
1089  for(i=0;i<nmax;i++) for(l=0;l<dim;l++) for(m=0;m<dim;m++) data1[i*sg+l*dim+m]=data[i](l,m);
1090  set_timestep_pseudo(tstp,G,data1);
1091  delete [] data1;
1092 }
void set_timestep_pseudo(int tstp, GG &G, std::complex< double > *timestep)
+ Here is the call graph for this function: