clj-auto-diff
clj-auto-diff copied to clipboard
Avoid mutable global atom in core namespace
I ported this library from an earlier scheme library which made use of a global var e
. This is used as a counter in forward-mode
and reverse-mode
. This can be refactored so that the state isn't global and works with concurrent code.
It should require passing the state locally when calling a function that uses forward or reverse mode.