auto_contractor.mk_fac¶
- auto_contractor.mk_fac(x) Expr[source]¶
interface function Stand for “make factor”, the result of this function can be used in auto contractor as a factor. Make an Expr obj (can be sympy expression).
xcan have typestr, which will be viewed as code segment. The code segment can use functions and variables defined inauto_contractor.auto_fac_funcs,position_dict,base_position_dict. You can define functions inposition_dictorbase_position_dict.position_dictis argument in functioneval_cexpr.base_position_dictis argument in functioncache_compiled_cexpr.