@@ -275,7 +275,7 @@ function test_mooncake_eig(
275275 test_pullbacks_match (eig_trunc!, eig_trunc, A, DV, ΔDV, truncalg; rdata = (Mooncake. NoRData (), Mooncake. NoRData (), zero (real (T))))
276276 dDVtrunc = make_mooncake_tangent (ΔDVtrunc)
277277 Mooncake. TestUtils. test_rule (rng, eig_trunc_no_error, A, truncalg; mode = Mooncake. ReverseMode, output_tangent = dDVtrunc, atol = atol, rtol = rtol)
278- test_pullbacks_match (rng, eig_trunc_no_error!, eig_trunc_no_error, A, DV, ΔDV, truncalg)
278+ test_pullbacks_match (eig_trunc_no_error!, eig_trunc_no_error, A, DV, ΔDV, truncalg)
279279 end
280280 truncalg = TruncatedAlgorithm (MatrixAlgebraKit. default_eig_algorithm (A), truncrank (5 ; by = real))
281281 DV, _, ΔDV, ΔDVtrunc = ad_eig_trunc_setup (A, truncalg)
@@ -285,7 +285,7 @@ function test_mooncake_eig(
285285 test_pullbacks_match (eig_trunc!, eig_trunc, A, DV, ΔDV, truncalg; rdata = (Mooncake. NoRData (), Mooncake. NoRData (), zero (real (T))))
286286 dDVtrunc = make_mooncake_tangent (ΔDVtrunc)
287287 Mooncake. TestUtils. test_rule (rng, eig_trunc_no_error, A, truncalg; mode = Mooncake. ReverseMode, output_tangent = dDVtrunc, atol = atol, rtol = rtol)
288- test_pullbacks_match (rng, eig_trunc_no_error!, eig_trunc_no_error, A, DV, ΔDV, truncalg)
288+ test_pullbacks_match (eig_trunc_no_error!, eig_trunc_no_error, A, DV, ΔDV, truncalg)
289289 end
290290 end
291291 end
@@ -322,8 +322,8 @@ function test_mooncake_eigh(
322322 Mooncake. TestUtils. test_rule (rng, mc_copy_eigh_trunc, A, truncalg; mode = Mooncake. ReverseMode, output_tangent = dDVerr, atol = atol, rtol = rtol, is_primitive = false )
323323 test_pullbacks_match (mc_copy_eigh_trunc!, mc_copy_eigh_trunc, A, DV, ΔDV, truncalg; rdata = (Mooncake. NoRData (), Mooncake. NoRData (), zero (real (T))))
324324 dDVtrunc = make_mooncake_tangent (ΔDVtrunc)
325- Mooncake. TestUtils. test_rule (rng, copy_eigh_trunc_no_error , A, truncalg; mode = Mooncake. ReverseMode, output_tangent = dDVtrunc, atol = atol, rtol = rtol, is_primitive = false )
326- test_pullbacks_match (rng, copy_eigh_trunc_no_error !, copy_eigh_trunc_no_error , A, (D, V), (ΔD2, ΔV) , truncalg)
325+ Mooncake. TestUtils. test_rule (rng, mc_copy_eigh_trunc_no_error , A, truncalg; mode = Mooncake. ReverseMode, output_tangent = dDVtrunc, atol = atol, rtol = rtol, is_primitive = false )
326+ test_pullbacks_match (mc_copy_eigh_trunc_no_error !, mc_copy_eigh_trunc_no_error , A, DV, ΔDV , truncalg)
327327 end
328328 D = eigh_vals (A / 2 )
329329 truncalg = TruncatedAlgorithm (MatrixAlgebraKit. default_eigh_algorithm (A), trunctol (; atol = maximum (abs, D) / 2 ))
@@ -333,8 +333,8 @@ function test_mooncake_eigh(
333333 Mooncake. TestUtils. test_rule (rng, mc_copy_eigh_trunc, A, truncalg; mode = Mooncake. ReverseMode, output_tangent = dDVerr, atol = atol, rtol = rtol, is_primitive = false )
334334 test_pullbacks_match (mc_copy_eigh_trunc!, mc_copy_eigh_trunc, A, DV, ΔDV, truncalg; rdata = (Mooncake. NoRData (), Mooncake. NoRData (), zero (real (T))))
335335 dDVtrunc = make_mooncake_tangent (ΔDVtrunc)
336- Mooncake. TestUtils. test_rule (rng, copy_eigh_trunc_no_error , A, truncalg; mode = Mooncake. ReverseMode, output_tangent = dDVtrunc, atol = atol, rtol = rtol, is_primitive = false )
337- test_pullbacks_match (rng, copy_eigh_trunc_no_error !, copy_eigh_trunc_no_error , A, (D, V), (ΔD2, ΔV) , truncalg)
336+ Mooncake. TestUtils. test_rule (rng, mc_copy_eigh_trunc_no_error , A, truncalg; mode = Mooncake. ReverseMode, output_tangent = dDVtrunc, atol = atol, rtol = rtol, is_primitive = false )
337+ test_pullbacks_match (mc_copy_eigh_trunc_no_error !, mc_copy_eigh_trunc_no_error , A, DV, ΔDV , truncalg)
338338 end
339339 end
340340 end
@@ -378,7 +378,7 @@ function test_mooncake_svd(
378378 test_pullbacks_match (svd_trunc!, svd_trunc, A, USVᴴ, ΔUSVᴴ, truncalg; rdata = (Mooncake. NoRData (), Mooncake. NoRData (), Mooncake. NoRData (), zero (real (T))))
379379 dUSVᴴ = make_mooncake_tangent (ΔUSVᴴtrunc)
380380 Mooncake. TestUtils. test_rule (rng, svd_trunc_no_error, A, truncalg; mode = Mooncake. ReverseMode, output_tangent = dUSVᴴ, atol = atol, rtol = rtol)
381- test_pullbacks_match (rng, svd_trunc_no_error!, svd_trunc_no_error, A, USVᴴ, ΔUSVᴴ, truncalg)
381+ test_pullbacks_match (svd_trunc_no_error!, svd_trunc_no_error, A, USVᴴ, ΔUSVᴴ, truncalg)
382382 end
383383 @testset " trunctol" begin
384384 truncalg = TruncatedAlgorithm (MatrixAlgebraKit. default_svd_algorithm (A), trunctol (atol = S[1 , 1 ] / 2 ))
@@ -389,7 +389,7 @@ function test_mooncake_svd(
389389 test_pullbacks_match (svd_trunc!, svd_trunc, A, USVᴴ, ΔUSVᴴ, truncalg; rdata = (Mooncake. NoRData (), Mooncake. NoRData (), Mooncake. NoRData (), zero (real (T))))
390390 dUSVᴴ = make_mooncake_tangent (ΔUSVᴴtrunc)
391391 Mooncake. TestUtils. test_rule (rng, svd_trunc_no_error, A, truncalg; mode = Mooncake. ReverseMode, output_tangent = dUSVᴴ, atol = atol, rtol = rtol)
392- test_pullbacks_match (rng, svd_trunc_no_error!, svd_trunc_no_error, A, USVᴴ, ΔUSVᴴ, truncalg)
392+ test_pullbacks_match (svd_trunc_no_error!, svd_trunc_no_error, A, USVᴴ, ΔUSVᴴ, truncalg)
393393 end
394394 end
395395 end
0 commit comments