File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change 440
440
@test vpowf! (r1, x, x) ≈ (r2 .= x .^ x)
441
441
@test vpow! (r1, x, Val (0.75 )) ≈ (r2 .= x .^ 0.75 )
442
442
@test vpow! (r1, x, Val (2 / 3 )) ≈ (r2 .= x .^ (2 / 3 ))
443
- vpow! (r1, x, Val (0.5 )); r2 .= sqrt .(x)
444
- if Bool (! LoopVectorization. VectorizationBase. has_feature (Val (:x86_64_avx2 )))
443
+ vpow! (r1, x, Val (0.5 )); r2 .= Base . sqrt_llvm .(x)
444
+ # if Bool(!LoopVectorization.VectorizationBase.has_feature(Val(:x86_64_avx2)))
445
445
for i ∈ eachindex (x)
446
- @test abs (r1[i] - r2[i]) ≤ eps (r1[i])
446
+ # @test abs(r1[i] - r2[i]) ≤ eps(r1[i])
447
+ @test abs (r1[i] - r2[i]) ≤ 2 eps (r1[i])
447
448
end
448
- else
449
- @test r1 == r2
450
- end
449
+ # else
450
+ # @test r1 == r2
451
+ # end
451
452
@test vpow! (r1, x, Val (1 / 4 )) ≈ (r2 .= x .^ (1 / 4 ))
452
453
@test vpow! (r1, x, Val (4.5 )) ≈ (r2 .= x .^ 4.5 )
453
454
You can’t perform that action at this time.
0 commit comments