NESSi  v1.0.2
The NonEquilibrium Systems Simulation Library

◆ bose() [2/2]

template<typename T >
dvector cntr::bose ( beta,
dvector &  omega 
)

Evaluates the Bose distribution function.

Purpose

Evaluates the Bose distribution function \( n_\mathrm{B}(\omega)\) at given inverse temperature \(\beta\) for a vector of energies. The calculation is numerically stable for any \(\omega\ne 0 \).

Parameters
beta

[T] inverse temperature \(\beta\)

omega

[dvector] vector of energies

Definition at line 163 of file cntr_equilibrium_impl.hpp.

References bose().

163  {
164  int size=omega.size();
165  dvector tmp(size);
166  for(int i=0;i<size;i++){
167  tmp(i)=bose(beta,omega(i));
168  }
169  return tmp;
170 }
dvector bose(T beta, dvector &omega)
Evaluates the Bose distribution function.
+ Here is the call graph for this function: