Skip to content

Commit acbc5df

Browse files
committed
New benchmark for sqrt of small UpperTriangular matrices.
For tracking potential regressions to JuliaLang/julia#31100 .
1 parent 30466bf commit acbc5df

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/linalg/LinAlgBenchmarks.jl

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,20 @@ for s in SIZES
139139

140140
end
141141

142+
# Julia PR 31100
143+
begin
144+
mf4 = randmat(4)
145+
mc4 = randmat(Complex{Float64}, 4)
146+
147+
if VERSION >= v"0.7.0-DEV.1599"
148+
g["sqrt", "LinearAlgebra.UpperTriangular{Float64} (#31100)", 4] = @benchmarkable sqrt($mf4)
149+
g["sqrt", "LinearAlgebra.UpperTriangular{ComplexF64} (#31100)", 4] = @benchmarkable sqrt($mc4)
150+
else
151+
g["sqrt", "LinearAlgebra.UpperTriangular{Float64} (#31100)", 4] = @benchmarkable sqrtm($mf4)
152+
g["sqrt", "LinearAlgebra.UpperTriangular{ComplexF64} (#31100)", 4] = @benchmarkable sqrtm($mc4)
153+
end
154+
end
155+
142156
for b in values(g)
143157
b.params.time_tolerance = 0.45
144158
b.params.samples = 100

0 commit comments

Comments
 (0)