Skip to content

Commit 402d1aa

Browse files
committed
Replace eltyB in dot tests
1 parent 8853d95 commit 402d1aa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/testtriag.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,8 +273,8 @@ function test_triangular(elty1_types)
273273
# generalized dot
274274
for eltyb in (Float32, Float64, BigFloat, ComplexF32, ComplexF64, Complex{BigFloat})
275275
b1 = convert(Vector{eltyb}, (eltype(A1) <: Complex ? real(A1) : A1) * fill(1.0, n))
276-
b2 = convert(Vector{eltyb}, (eltype(A1) <: Complex ? real(A1) : A1) * randn(n))
277-
@test dot(b1, A1, b2) dot(A1'b1, b2) atol = sqrt(max(eps(real(float(one(eltype(A1))))), eps(real(float(one(eltyb)))))) * n * n
276+
b2 = oftype(b1, (eltype(A1) <: Complex ? real(A1) : A1) * randn(n))
277+
@test dot(b1, A1, b2) dot(A1'b1, b2) atol = sqrt(max(eps(real(float(one(eltype(A1))))), eps(real(float(one(eltype(b1))))))) * n * n
278278
end
279279

280280
# Binary operations

0 commit comments

Comments
 (0)