Skip to content

Commit 46a7b39

Browse files
committed
Remove view
1 parent 0b0a61a commit 46a7b39

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/gamma_inc.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ function gamma_inc_taylor(a::Float64, x::Float64, ind::Integer)
425425
apn = a
426426

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

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

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

0 commit comments

Comments
 (0)