Skip to content
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.

Commit

Permalink
Remove . from . operators.
Browse files Browse the repository at this point in the history
  • Loading branch information
DrTodd13 committed May 25, 2017
1 parent 77f5c3c commit 836748c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/pi/pi.jl
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ using DocOpt
#ParallelAccelerator.CGen.set_debug_level(3)

@acc function calcPi(n)
x = rand(n) .* 2.0 .- 1.0
y = rand(n) .* 2.0 .- 1.0
return 4.0*sum(x.^2 .+ y.^2 .< 1.0)/n
x = rand(n) * 2.0 - 1.0
y = rand(n) * 2.0 - 1.0
return 4.0*sum(x^2 + y^2 < 1.0)/n
end


Expand Down

0 comments on commit 836748c

Please sign in to comment.