Skip to content

Commit 2a88978

Browse files
committed
get rid of the norm tests, unnecessary now
1 parent fb31b19 commit 2a88978

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

test/forwarddiff_overloads.jl

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -265,11 +265,6 @@ cache_overdet = init(prob_overdet)
265265
sol_cache_overdet = solve!(cache_overdet)
266266
@test sol_cache_overdet.u sol_overdet.u
267267

268-
# Test residuals - check if both solutions minimize ||A*x - b||^2
269-
residual_linsolve = A_overdet * sol_overdet.u - b_overdet
270-
residual_backslash = A_overdet * backslash_overdet - b_overdet
271-
@test norm(residual_linsolve) norm(residual_backslash)
272-
273268
# Dual values should match
274269
@test ForwardDiff.partials.(sol_overdet.u) ForwardDiff.partials.(backslash_overdet)
275270

@@ -289,11 +284,6 @@ backslash_large = A_large_dual \ b_large_dual
289284
# Test primal values match
290285
@test ForwardDiff.value.(sol_large.u) ForwardDiff.value.(backslash_large)
291286

292-
# Test residuals match - both should minimize ||A*x - b||^2
293-
residual_large_linsolve = A_large_dual * sol_large.u - b_large_dual
294-
residual_large_backslash = A_large_dual * backslash_large - b_large_dual
295-
@test norm(residual_large_linsolve) norm(residual_large_backslash)
296-
297287
# Test partials match
298288
@test ForwardDiff.partials.(sol_large.u) ForwardDiff.partials.(backslash_large)
299289

0 commit comments

Comments
 (0)