dynare/mex
Sébastien Villemot ce282dc29c
local_state_space_iteration_2 MEX: fix bug when there are more shocks that states
The code that computes ghx·yhat+ghu·u (both with and without pruning) was
making the implicit assumption that q⩽n, i.e. that the number of shocks is less
than or equal to the number of states. If q>n, it would try to read invalid
memory references in ghx and yhat, and would thus either crash or return dummy
results.

Closes: #1820
2021-10-14 16:18:17 +02:00
..
build Build system: fix several warnings with Autoconf 2.70 2021-09-28 18:21:17 +02:00
sources local_state_space_iteration_2 MEX: fix bug when there are more shocks that states 2021-10-14 16:18:17 +02:00