Skip to content

Commit db56d5d

Browse files
committed
use sum
1 parent b6c96e7 commit db56d5d

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/owent.jl

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -120,12 +120,7 @@ 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 = zero(a)
124-
@inbounds for i in eachindex(w)
125-
towen += w[i] * t2(h,a,x[i])
126-
end
127-
128-
return towen
123+
return sum(w .* t2.(h, a, x))
129124
else
130125
# a > 0.999999, T6 from paper (quadrature using QuadGK would also work, but be slower)
131126

0 commit comments

Comments
 (0)