gEconpy.model.perturbation.statespace_to_gEcon_representation#
- gEconpy.model.perturbation.statespace_to_gEcon_representation(A, T, R, tol)#
Decompose the full state-space solution into gEcon’s state/jumper partition.
Splits the policy matrices
TandRinto state-variable and jumper-variable blocks according to which columns ofThave at least one entry exceedingtolin absolute value.- Parameters:
- A
np.ndarray Lead Jacobian matrix from the linearized system.
- T
np.ndarray Transition matrix (policy function for state evolution).
- R
np.ndarray Shock-response matrix.
- tol
float Threshold for identifying state variables.
- A
- Returns:
- P
np.ndarray State-to-state transition sub-matrix.
- Q
np.ndarray State shock-response sub-matrix.
- R
np.ndarray Jumper-to-state mapping sub-matrix.
- S
np.ndarray Jumper shock-response sub-matrix.
- A_prime
np.ndarray Lead Jacobian restricted to state-variable columns.
- R_prime
np.ndarray Transition matrix restricted to state-variable columns.
- S_prime
np.ndarray Shock-response matrix (all variables).
- P