NESSi  v1.0.2
The NonEquilibrium Systems Simulation Library

◆ herm_matrix_timestep() [3/6]

template<typename T >
cntr::herm_matrix_timestep< T >::herm_matrix_timestep ( int  tstp,
int  ntau,
int  size1,
int  sig 
)

Initializes the herm_matrix_timestep class for a square-matrix for fermions/bosons.

Purpose


Initializes the herm_matrix_timestep class for a square-matrix.


Parameters
tstp

Time step

ntau

Number of points on Matsubara axis

size1

Matrix rank of the contour function. (size2=size1)

sig

Set sig = -1 for fermions or sig = +1 for bosons.

Definition at line 133 of file cntr_herm_matrix_timestep_impl.hpp.

133  {
134 int len=((tstp+1)*2+(ntau+1))*size1*size1;
135 assert(size1>=0 && tstp>=-1 && ntau>=0 && sig*sig==1);
136 if(len==0) data_=0;
137 else{
138  data_ = new cplx [len];
139  memset(data_, 0, sizeof(cplx)*len);
140 }
141 size1_=size1;
142 size2_=size1;
143 element_size_=size1*size1_;
144 tstp_=tstp;
145 ntau_=ntau;
146 total_size_=len;
147 sig_=sig;
148 }