Speedup conservation law computation (#1754)
Speedup conservation law computation (#1754)

* speedup

* Apply suggestions from code review

Co-authored-by: Daniel Weindl <9ea2767267be08d510ca4d6324b5627f79d1945b@users.noreply.github.com>

Co-authored-by: Daniel Weindl <9ea2767267be08d510ca4d6324b5627f79d1945b@users.noreply.github.com>
FFroehlich/AMICI,FFroehlich/AMICI,FFroehlich/AMICI,FFroehlich/AMICI