We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cd68bce commit cc78357Copy full SHA for cc78357
1 file changed
test/manifolds/manifolddiff.jl
@@ -145,12 +145,12 @@ end
145
X = hat(M, e0, zeros(3))
146
g_FD!(X, q)
147
# gradient at the optimal point should be zero
148
-@show X_ = X[:]
+@show X_ = [X.x[1][:]; X.x[2][:]]
149
@test isapprox(0, sum(abs.(X_)); atol=1e-8 )
150
151
# gradient not the optimal point should be non-zero
152
g_FD!(X, e0)
153
154
@test 0.01 < sum(abs.(X_))
155
156
## do optimization
0 commit comments