Skip to content

Commit 2168230

Browse files
authored
Make sure that eltyp is actually used for LinearAlgebra test (#38498)
1 parent fb58435 commit 2168230

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

stdlib/LinearAlgebra/test/lapack.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,8 @@ end
196196

197197
@testset "gebal/gebak" begin
198198
@testset for elty in (Float32, Float64, ComplexF32, ComplexF64)
199-
A = rand(elty,10,10) * Diagonal(exp10.(range(-10, stop=10, length=10)))
199+
typescale = log10(eps(real(elty))) / 3 * 2
200+
A = rand(elty,10,10) * Diagonal(exp10.(range(typescale, stop=-typescale, length=10)))
200201
B = copy(A)
201202
ilo, ihi, scale = LAPACK.gebal!('S',B)
202203
Bvs = eigvecs(B)

0 commit comments

Comments
 (0)