gEconpy.model.compile.pack_and_compile#
- gEconpy.model.compile.pack_and_compile(outputs, ss_nodes, param_dict=None, mode=None)#
Replace SS variable scalars with
x_flat[i]indexing and compile.Only SS nodes that are actual graph inputs are replaced. If
param_dictis provided, parameter values are frozen into the closure and the returned function has signaturef(x_flat); otherwise it isf(x_flat, *param_args).- Parameters:
- Returns:
callable()Compiled function.