@@ -23,7 +23,7 @@ algorithms, and their in-place variants.
2323function test_enzyme_left_orth (
2424 T, sz;
2525 rng = Random. default_rng (), atol:: Real = 0 , rtol:: Real = precision (T),
26- fdm = eltype (T) <: Union{Float32, ComplexF32} ? EnzymeTestUtils . FiniteDifferences . central_fdm ( 5 , 1 , max_range = 1.0e-2 ) : EnzymeTestUtils . FiniteDifferences . central_fdm ( 5 , 1 )
26+ fdm = enzyme_fdm (T )
2727 )
2828 return @testset " left_orth reverse: RT $RT , TA $TA " for RT in (Duplicated,), TA in (Duplicated,)
2929 A = instantiate_matrix (T, sz)
@@ -58,7 +58,7 @@ algorithms, and their in-place variants.
5858function test_enzyme_right_orth (
5959 T, sz;
6060 rng = Random. default_rng (), atol:: Real = 0 , rtol:: Real = precision (T),
61- fdm = eltype (T) <: Union{Float32, ComplexF32} ? EnzymeTestUtils . FiniteDifferences . central_fdm ( 5 , 1 , max_range = 1.0e-2 ) : EnzymeTestUtils . FiniteDifferences . central_fdm ( 5 , 1 )
61+ fdm = enzyme_fdm (T )
6262 )
6363 return @testset " right_orth reverse: RT $RT , TA $TA " for RT in (Duplicated,), TA in (Duplicated,)
6464 A = instantiate_matrix (T, sz)
@@ -92,7 +92,7 @@ in-place variant.
9292function test_enzyme_left_null (
9393 T, sz;
9494 rng = Random. default_rng (), atol:: Real = 0 , rtol:: Real = precision (T),
95- fdm = eltype (T) <: Union{Float32, ComplexF32} ? EnzymeTestUtils . FiniteDifferences . central_fdm ( 5 , 1 , max_range = 1.0e-2 ) : EnzymeTestUtils . FiniteDifferences . central_fdm ( 5 , 1 )
95+ fdm = enzyme_fdm (T )
9696 )
9797 return @testset " left_null reverse: RT $RT , TA $TA " for RT in (Duplicated,), TA in (Duplicated,)
9898 A = instantiate_matrix (T, sz)
@@ -114,7 +114,7 @@ in-place variant.
114114function test_enzyme_right_null (
115115 T, sz;
116116 rng = Random. default_rng (), atol:: Real = 0 , rtol:: Real = precision (T),
117- fdm = eltype (T) <: Union{Float32, ComplexF32} ? EnzymeTestUtils . FiniteDifferences . central_fdm ( 5 , 1 , max_range = 1.0e-2 ) : EnzymeTestUtils . FiniteDifferences . central_fdm ( 5 , 1 )
117+ fdm = enzyme_fdm (T )
118118 )
119119 return @testset " right_null reverse: RT $RT , TA $TA " for RT in (Duplicated,), TA in (Duplicated,)
120120 A = instantiate_matrix (T, sz)
0 commit comments