Skip to content

Commit ab12c5b

Browse files
authored
Update QuadGKEnzymeExt.jl
1 parent e87bd84 commit ab12c5b

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

ext/QuadGKEnzymeExt.jl

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,18 +90,21 @@ end
9090

9191
function 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
9495
end
9596

9697
function 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
99101
end
100102

101103
function 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
105108
end
106109

107110
function Base.:*(a::MixedClosureVector, b::Number)

0 commit comments

Comments
 (0)