Skip to content

Commit

Permalink
[test/LinearAlgebra] test Issue JuliaLang#40963
Browse files Browse the repository at this point in the history
  • Loading branch information
inkydragon committed Sep 27, 2021
1 parent 8935164 commit a136609
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions stdlib/LinearAlgebra/test/blas.jl
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,16 @@ Random.seed!(100)
@test BLAS.dotu(z1,z2) sum(z1.*z2)
@test_throws DimensionMismatch BLAS.dotc(z1,rand(elty, n + 1))
@test_throws DimensionMismatch BLAS.dotu(z1,rand(elty, n + 1))

end
end
@testset "Issue #40963: OpenBLAS, cblas_zdotc_sub" begin
if elty <: Complex
arrSzie = 10001
z1 = ones(elty, arrSzie);
z2 = ones(elty, arrSzie);
@test BLAS.dotc(z1,z2) sum(conj(z1).*z2)
@test BLAS.dotu(z1,z2) sum(z1.*z2)
end
end
@testset "iamax" begin
Expand Down

0 comments on commit a136609

Please sign in to comment.