Skip to content

Commit 4c5659f

Browse files
committed
rm LinearAlgebra dependency
1 parent 2208822 commit 4c5659f

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

Project.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ version = "2.5.0"
55
[deps]
66
ChainRulesCore = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4"
77
IrrationalConstants = "92d709cd-6900-40b7-9082-c6be49f344b6"
8-
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
98
LogExpFunctions = "2ab3a3ac-af41-5b50-aa03-7779005ae688"
109
OpenLibm_jll = "05823500-19ac-5b8b-9628-191a04bc5112"
1110
OpenSpecFun_jll = "efe28fd5-8261-553b-a9e1-b2916fc3738e"
@@ -20,7 +19,6 @@ SpecialFunctionsChainRulesCoreExt = "ChainRulesCore"
2019
ChainRulesCore = "0.9.44, 0.10, 1"
2120
ChainRulesTestUtils = "0.6.8, 0.7, 1"
2221
IrrationalConstants = "0.1, 0.2"
23-
LinearAlgebra = "1.11.0"
2422
LogExpFunctions = "0.3.2"
2523
OpenLibm_jll = "0.7, 0.8"
2624
OpenSpecFun_jll = "0.5"

src/SpecialFunctions.jl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
module SpecialFunctions
22

3-
import LinearAlgebra: dot
4-
53
using IrrationalConstants:
64
twoπ,
75
halfπ,

src/owent.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,10 @@ function owent(h::T, a::T) where {T <: Real}
120120
, T(0.031167227832798003), T(0.027426509708356944), T(0.023570760839324363), T(0.01961616045735561), T(0.015579315722943824), T(0.011477234579234613), T(0.0073275539012762885)
121121
, T(0.0031533460523059122))
122122

123-
towen = dot(w, t2.(h,a,x))
123+
towen = zero(a)
124+
@inbounds for i in eachindex(w)
125+
towen += w[i] * t2(h,a,x[i])
126+
end
124127

125128
return towen
126129
else

0 commit comments

Comments
 (0)