Skip to content

Commit

Permalink
elementwise
Browse files Browse the repository at this point in the history
  • Loading branch information
dweindl committed Feb 26, 2024
1 parent 6eef0a3 commit 2b717f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/sdist/amici/de_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -1662,8 +1662,8 @@ def static_indices(self, name: str) -> list[int]:
# splines: non-static
not self._splines or "AmiciSpline" not in str(expr)
)
and smart_is_zero_matrix(
smart_jacobian(sp.Matrix([expr]), dynamic_syms)
and all(
expr.diff(dyn_sym).is_zero for dyn_sym in dynamic_syms
)
)
]
Expand Down

0 comments on commit 2b717f7

Please sign in to comment.