Skip to main content

giwn_single_pole

Function giwn_single_pole 

Source
pub fn giwn_single_pole<S>(
    matsubara_freq: &MatsubaraFreq<S>,
    omega: f64,
    beta: f64,
) -> Result<Complex<f64>, Error>
where S: StatisticsType,
Expand description

Generic single-pole Green’s function at Matsubara frequency

Computes G(iν) = 1/(iν - ω) for a single pole at frequency ω.

§Type Parameters

  • S - Statistics type (Fermionic or Bosonic)

§Arguments

  • matsubara_freq - Matsubara frequency
  • omega - Pole position (real frequency)
  • beta - Inverse temperature

§Returns

Complex-valued Green’s function G(iν)

§Errors

Error::InvalidParameter if beta is not positive and finite, or omega is not finite