triqs.gfs.lazy_expressions.lazy_function
- triqs.gfs.lazy_expressions.lazy_function(name, F)[source]
Wrap a Python callable so it can be applied to lazy expressions.
- Parameters:
- namestr
Display name used when stringifying the tree.
- Fcallable
Function to invoke at evaluation time.
- Returns:
- LazyExpr
Terminal node holding
(name, F); calling it aswrapped(*args)produces a"F"-tagged expression node.