gEconpy.model.compile.dictionary_return_wrapper#

gEconpy.model.compile.dictionary_return_wrapper(f, outputs)#

Wrap a function that returns a numpy array to instead return a SymbolDictionary.

The dictionary returned has keys corresponding to the output symbols.

Parameters:
f: Callable

The function to wrap

outputs: list[sp.Symbol]

The output symbols of the function, in the same order as the outputs of the function.

Returns:
inner: Callable

The wrapped function