Skip to content

Commit 7c86f57

Browse files
committed
More noise
1 parent a38301c commit 7c86f57

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

DifferentiationInterfaceTest/ext/DifferentiationInterfaceTestComponentArraysExt/DifferentiationInterfaceTestComponentArraysExt.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ function comp_to_num(x::ComponentVector)::Number
1010
return sum(sin.(x.a)) + sum(cos.(x.b))
1111
end
1212

13-
comp_to_num_gradient(x) = ComponentVector(; a=cos.(x.a), b=(-sin.(x.b)))
13+
comp_to_num_gradient(x) = ComponentVector(; a=cos.(x.a), b=-sin.(x.b))
1414

1515
function comp_to_num_pushforward(x, dx)
1616
g = comp_to_num_gradient(x)

0 commit comments

Comments
 (0)