Skip to content

Commit cc78357

Browse files
committed
try different fix
1 parent cd68bce commit cc78357

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/manifolds/manifolddiff.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,12 +145,12 @@ end
145145
X = hat(M, e0, zeros(3))
146146
g_FD!(X, q)
147147
# gradient at the optimal point should be zero
148-
@show X_ = X[:]
148+
@show X_ = [X.x[1][:]; X.x[2][:]]
149149
@test isapprox(0, sum(abs.(X_)); atol=1e-8 )
150150

151151
# gradient not the optimal point should be non-zero
152152
g_FD!(X, e0)
153-
@show X_ = X[:]
153+
@show X_ = [X.x[1][:]; X.x[2][:]]
154154
@test 0.01 < sum(abs.(X_))
155155

156156
## do optimization

0 commit comments

Comments
 (0)