Block decomposition: in symbolic normalization, no longer insert a null pointer in dynamic Jacobian
Rather use DataTree::Zero, since we use numerical zero for static and contemporanous Jacobians.issue#70
parent
5d6e6338f4
commit
a2caa8b4a8
|
@ -363,7 +363,7 @@ ModelTree::computeNonSingularNormalization(jacob_map_t &contemporaneous_jacobian
|
||||||
if (static_jacobian.find(eq_and_endo) == static_jacobian.end())
|
if (static_jacobian.find(eq_and_endo) == static_jacobian.end())
|
||||||
static_jacobian[eq_and_endo] = 0;
|
static_jacobian[eq_and_endo] = 0;
|
||||||
if (dynamic_jacobian.find({ 0, eq_and_endo.first, eq_and_endo.second }) == dynamic_jacobian.end())
|
if (dynamic_jacobian.find({ 0, eq_and_endo.first, eq_and_endo.second }) == dynamic_jacobian.end())
|
||||||
dynamic_jacobian[{ 0, eq_and_endo.first, eq_and_endo.second }] = nullptr;
|
dynamic_jacobian[{ 0, eq_and_endo.first, eq_and_endo.second }] = Zero;
|
||||||
if (contemporaneous_jacobian.find(eq_and_endo) == contemporaneous_jacobian.end())
|
if (contemporaneous_jacobian.find(eq_and_endo) == contemporaneous_jacobian.end())
|
||||||
contemporaneous_jacobian[eq_and_endo] = 0;
|
contemporaneous_jacobian[eq_and_endo] = 0;
|
||||||
try
|
try
|
||||||
|
|
Loading…
Reference in New Issue