- During an evaluation of the model with bytecode stores all Jacobian matrix (w.r. to endogenous of the current block, exogenous and endogenous from previous blocks) in M_block_structure.block(j)
parent
c74ee8e61b
commit
36941dd704
|
@ -410,12 +410,9 @@ mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])
|
|||
for (int i = 0; i < nb_blocks; i++)
|
||||
{
|
||||
mxSetFieldByNumber(block_structur,i,jacob_field_number,interprete.get_jacob(i));
|
||||
if (!evaluate)
|
||||
{
|
||||
mxSetFieldByNumber(block_structur,i,jacob_exo_field_number,interprete.get_jacob_exo(i));
|
||||
mxSetFieldByNumber(block_structur,i,jacob_exo_det_field_number,interprete.get_jacob_exo_det(i));
|
||||
mxSetFieldByNumber(block_structur,i,jacob_other_endo_field_number,interprete.get_jacob_other_endo(i));
|
||||
}
|
||||
mxSetFieldByNumber(block_structur,i,jacob_exo_field_number,interprete.get_jacob_exo(i));
|
||||
mxSetFieldByNumber(block_structur,i,jacob_exo_det_field_number,interprete.get_jacob_exo_det(i));
|
||||
mxSetFieldByNumber(block_structur,i,jacob_other_endo_field_number,interprete.get_jacob_other_endo(i));
|
||||
}
|
||||
plhs[2] = block_structur;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue