clad icon indicating copy to clipboard operation
clad copied to clipboard

Fix condition declarations and assignments in for loops

Open gojakuch opened this issue 9 months ago • 9 comments

These changes fix the differentiation of variable declarations in for loop conditions that used to result into wrong derivatives. The commit also tackles the problem of having an assignment operator that affects the derivative in the for-loop condition, as well as adds support for logical operators in for-loops and allows to combine assignments with them.

Fixes: #273

gojakuch avatar May 23 '24 18:05 gojakuch