triqs.gfs.descriptor_base.convert_scalar_to_const
- triqs.gfs.descriptor_base.convert_scalar_to_const(expr)[source]
Lift scalars inside a lazy expression to
Constdescriptors.Used by
__lshift__()so thatg << 2.0andg << iOmega_n + 0.5are handled by the descriptor machinery.- Parameters:
- exprLazyExpr
Expression that may contain raw scalar leaves.
- Returns:
- LazyExpr
Equivalent expression with every scalar wrapped in a
Const.