triqs.gfs.tools.inverse

triqs.gfs.tools.inverse(x)[source]

Element-wise inverse with lazy-expression support.

Parameters:
xGf, BlockGf, LazyExpr or numeric

Object to invert. For a Gf / BlockGf this calls x.inverse() (target-space matrix inverse at every mesh point); for a lazy expression a new lazy node is returned; for a plain scalar 1.0 / x.

Returns:
Same type as x

The inverse.

Examples

>>> from triqs.gfs import inverse, iOmega_n
>>> Sigma << iOmega_n - inverse(G_iw)