Skip to content
This repository has been archived by the owner on Jan 12, 2020. It is now read-only.

Commit

Permalink
phrasing tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
stevengj committed Feb 2, 2017
1 parent 8bf5099 commit 5eede49
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions blog/_posts/2017-01-21-moredots.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,16 @@ storing the result in-place in `X`. You can now do:

```jl
X .= f.(2 .* X.^2 .+ 6 .* X.^3 .- sqrt.(X))
# equivalently, write: @. X = f(2X^2 + 6X^3 - sqrt(X))
```

or, [equivalently](https://github.com/JuliaLang/julia/pull/20321):

```jl
@. X = f(2X^2 + 6X^3 - sqrt(X))
```

and the whole computation will be *fused* into a single loop, operating in-place,
and performance will be comparable to the hand-written
with performance comparable to the hand-written
"devectorized" loop:

```jl
Expand Down

0 comments on commit 5eede49

Please sign in to comment.