NESSi  v1.0.2
The NonEquilibrium Systems Simulation Library

◆ mem_herm_matrix()

template<typename T >
size_t cntr::mem_herm_matrix ( int  nt,
int  ntau,
int  size 
)

Evaluate the memory necessary for a herm_matrix.

Purpose

Evaluate the memory necessary for a herm_matrix. Square matrix is assumed.

Parameters
nt

maximum number of the time steps

ntau

number of time grids on the Matsubara axis

size

size of the colums and the rows of the square Matrix

Definition at line 2015 of file cntr_utilities_impl.hpp.

2015  {
2016  size_t mem = ((nt + 1) * (nt + 2) + (nt + 2) * (ntau + 1)) * size * size *
2017  sizeof(std::complex<T>);
2018  return mem;
2019 }