@@ -29,7 +29,7 @@ using IfElse: ifelse
29
29
using ThreadingUtilities, CheapThreads
30
30
using SLEEFPirates: pow
31
31
using Base. Broadcast: Broadcasted, DefaultArrayStyle
32
- using LinearAlgebra: Adjoint, Transpose
32
+ using LinearAlgebra: Adjoint, Transpose, Diagonal
33
33
using Base. Meta: isexpr
34
34
using DocStringExtensions
35
35
import LinearAlgebra # for check_args
@@ -38,7 +38,7 @@ using Base.FastMath: add_fast, sub_fast, mul_fast, div_fast, inv_fast, abs2_fast
38
38
39
39
40
40
using ArrayInterface
41
- using ArrayInterface: OptionallyStaticUnitRange, OptionallyStaticRange, Zero, One, StaticBool, True, False, reduce_tup, indices
41
+ using ArrayInterface: OptionallyStaticUnitRange, OptionallyStaticRange, Zero, One, StaticBool, True, False, reduce_tup, indices, UpTri, LoTri
42
42
@static if VERSION ≥ v " 1.6.0-rc1" # TODO : delete `else` when dropping 1.5 support
43
43
using ArrayInterface: static_step
44
44
else # Julia 1.5 did not define `step` on CartesianIndices
@@ -116,6 +116,9 @@ function __init__()
116
116
@require ChainRulesCore = " d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4" begin
117
117
@require ForwardDiff = " f6369f11-7733-5829-9624-2563aa707210" include (" simdfunctionals/vmap_grad.jl" )
118
118
end
119
+ @require SpecialFunctions = " 276daf66-3868-5448-9aa4-cd146d93841b" begin
120
+ @eval SpecialFunctions. erf (x:: VectorizationBase.AbstractSIMD ) = VectorizationBase. verf (float (x))
121
+ end
119
122
end
120
123
121
124
end # module
0 commit comments