You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
currently, if a function contains a lambda expression, Clad treats it as a special case of a functor. there's no general support for lambdas with captures yet. however, I believe at this point we should stop treating lambda functions as functors but instead generate separate lambda functions representing the pullback of the initial lambda. this way Clad wouldn't need to modify the lambda class that is impossible for the user to manipulate.
pullbacks of the functions that accept lambdas as their arguments would then need to accept both the initial lambda f and its pullback d_f.
this ensures valid source code generation.
The text was updated successfully, but these errors were encountered:
currently, if a function contains a lambda expression, Clad treats it as a special case of a functor. there's no general support for lambdas with captures yet. however, I believe at this point we should stop treating lambda functions as functors but instead generate separate lambda functions representing the pullback of the initial lambda. this way Clad wouldn't need to modify the lambda class that is impossible for the user to manipulate.
pullbacks of the functions that accept lambdas as their arguments would then need to accept both the initial lambda
f
and its pullbackd_f
.this ensures valid source code generation.
The text was updated successfully, but these errors were encountered: