NESSi  v1.0.2
The NonEquilibrium Systems Simulation Library

◆ herm_matrix_timestep() [2/6]

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

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

Purpose

Initializes the herm_matrix_timestep class for a square-matrix. Parameter sig_=-1 is set for fermions. Obsolete, please use constructor with explicit 'sig'.

Parameters
tstp

Time step

ntau

Number of points on Matsubara axis

size1

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

Definition at line 54 of file cntr_herm_matrix_timestep_impl.hpp.

54  {
55  int len=((tstp+1)*2+(ntau+1))*size1*size1;
56  assert(size1>=0 && tstp>=-1 && ntau>=0);
57  if(len==0) data_=0;
58  else{
59  data_ = new cplx [len];
60  memset(data_, 0, sizeof(cplx)*len);
61  }
62  size1_=size1;
63  size2_=size1;
64  element_size_=size1*size1_;
65  tstp_=tstp;
66  ntau_=ntau;
67  total_size_=len;
68  sig_=-1;
69 }