Skip to content

Commit

Permalink
Remove view
Browse files Browse the repository at this point in the history
  • Loading branch information
BioTurboNick committed May 5, 2023
1 parent 0b0a61a commit 46a7b39
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/gamma_inc.jl
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ function gamma_inc_taylor(a::Float64, x::Float64, ind::Integer)
apn = a

# compute and store larger terms in wk, to add from small to large
t = 1
t = 1.0
i = 0
while i < 20
i += 1
Expand All @@ -445,8 +445,8 @@ function gamma_inc_taylor(a::Float64, x::Float64, ind::Integer)
end

# sum terms from small to large
for v @view wk[i:-1:1]
sm += v
for j i:(-1):1
sm += wk[j]
end

p = (rgammax(a, x) / a) * (1.0 + sm)
Expand Down

0 comments on commit 46a7b39

Please sign in to comment.