NESSi  v1.0.2
The NonEquilibrium Systems Simulation Library

◆ resize()

template<typename T >
void cntr::herm_matrix< T >::resize ( int  nt,
int  ntau,
int  size1 
)

Resizes herm_matrix object with respect to the number of time points nt, points on the Matsubara branch ntau or the matrix size size1.

Purpose

Resizes herm_matrix class with respect to number of time steps nt. If nt >= 0 real-time components are resized, otherwise deallocated (i.e. only the Matsubara component is kept in memory).

Parameters
nt

New number of time steps.

ntau

Number of points on Matsubara axis

size1

size of the matrix

Definition at line 417 of file cntr_herm_matrix_impl.hpp.

417  {
418  // std::cout << "herm_matrix<T>::" << __FUNCTION__ << " " << nt << " " <<
419  // ntau << " " << size1 << std::endl;
420  if (ntau == ntau_ && size1_ == size1)
421  resize_nt(nt);
422  else
424 }
void resize_nt(int nt)
Resizes herm_matrix object with respect to the number of time points nt. Internal routine; see top-l...
void resize_discard(int nt, int ntau, int size1)
Discards the herm_matrix object and resize with respect to the number of time points nt...