Skip to content

Commit c710a38

Browse files
committed
Removed unnecessary println in claytonsample! function definition.
1 parent e564501 commit c710a38

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test/runtests.jl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,12 @@ function claytonsample!(sto, τ, α; randmat=randmat)
5454
τ == 0 && return sto
5555

5656
n = size(sto, 1)
57-
println(size(sto))
58-
v = @view sto[:, 2]
59-
u = @view sto[:, 1]
60-
sto[i, 1] = (1 - u^(-τ) + u^(-τ)*v^(-/(1 + τ))))^(-1/τ)*α
61-
sto[i, 2] = (1 - u^(-τ) + u^(-τ)*v^(-/(1 + τ))))^(-1/τ)
62-
57+
for i in 1:n
58+
v = sto[i, 2]
59+
u = sto[i, 1]
60+
sto[i, 1] = (1 - u^(-τ) + u^(-τ)*v^(-/(1 + τ))))^(-1/τ)*α
61+
sto[i, 2] = (1 - u^(-τ) + u^(-τ)*v^(-/(1 + τ))))^(-1/τ)
62+
end
6363
return sto
6464
end
6565

0 commit comments

Comments
 (0)