clad icon indicating copy to clipboard operation
clad copied to clipboard

Add support for range-based for loops.

Open vgvassilev opened this issue 5 months ago • 3 comments

vgvassilev avatar Jan 21 '24 08:01 vgvassilev

Hey @vgvassilev , Could you provide guidance on resolving this problem? I'm new to the CLAD codebase and would appreciate assistance

7070Shreyash avatar Jan 21 '24 21:01 7070Shreyash

I would like to work on this issue @vgvassilev. I guess its only the body of the range-based for loop that can be differentiated right?

krathul avatar Mar 12 '24 15:03 krathul

@vgvassilev from what I can understand I need to first differentiate initialization statement, and then the body. And finally construct the ranged for loop block which uses derivates. Or will it be possible to transform the range-based for loop to a normal for loop?

krathul avatar Mar 12 '24 22:03 krathul