Perturbation#

linearize_model(variables, equations, shocks)

Log-linearize a model around its steady state.

compile_linearized_system(equations, ...[, ...])

Compile a function that evaluates the linearized system of equations.

check_bk_condition(A, B, C, D[, tol, ...])

Compute the generalized eigenvalues of system in the form presented in [1].

Helper Functions#

make_not_loglin_flags(variables, ...[, ...])

override_dummy_wrapper(f[, param_name])

Wrap a function to map a parameter name to a _Dummy argument in a sympy lambdify generated function.

make_all_variable_time_combinations(variables)

Shift a list of TimeAwareSymbols to create all possible lags, current, and lead variables.

statespace_to_gEcon_representation(A, T, R, tol)

check_perturbation_solution(A, B, C, D, T, R)

Pytensor Ops#

check_bk_condition_pt(A, B, C, D[, tol])

Check the Blanchard-Kahn condition for a model.