Utilities#

flatten_list(items[, result_list])

set_equality_equals_zero(eq)

eq_to_ss(eq[, shocks])

safe_to_ss(x)

Convert x to steady-state if it is TimeAware, or return it unchanged otherwise.

expand_subs_for_all_times(sub_dict)

step_equation_forward(eq)

step_equation_backward(eq)

diff_through_time(eq, dx[, discount_factor])

substitute_all_equations(eqs, *sub_dicts)

is_variable(x)

is_number(x)

Check if string x is a numeric string (int or float).

unpack_keys_and_values(d)

merge_dictionaries(*dicts)

make_all_var_time_combos(var_list)

postprocess_optimizer_res(res, res_dict, ...)

get_name(x[, base_name])

Return the name of a string, TimeAwareSymbol, or sp.Symbol object.

substitute_repeatedly(expr, sub_dict[, max_subs])

Repeatedly call expr = expr.sub(sub_dict).

simplify_matrix(A)

Call sp.simplify on all cells of a matrix.