File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 9090
9191function Base.:+ (a:: CV , b:: CV ) where {CV <: MixedClosureVector }
9292 res = deepcopy (a):: CV
93- Enzyme. Compiler. recursive_accumulate (res, b, identity):: CV
93+ Enzyme. Compiler. recursive_accumulate (res, b, identity)
94+ res
9495end
9596
9697function Base.:- (a:: CV , b:: CV ) where {CV <: MixedClosureVector }
9798 res = deepcopy (a):: CV
98- Enzyme. Compiler. recursive_accumulate (res, b, x-> - x):: CV
99+ Enzyme. Compiler. recursive_accumulate (res, b, x-> - x)
100+ res
99101end
100102
101103function Base.:* (a:: Number , b:: CV ) where {CV <: MixedClosureVector }
102104 # b + (a-1) * b = a * b
103105 res = deepcopy (b):: CV
104- Enzyme. Compiler. recursive_accumulate (res, b, x-> (a- 1 )* x):: CV
106+ Enzyme. Compiler. recursive_accumulate (res, b, x-> (a- 1 )* x)
107+ res
105108end
106109
107110function Base.:* (a:: MixedClosureVector , b:: Number )
You can’t perform that action at this time.
0 commit comments