Skip to content

Commit

Permalink
removed outdated paragraph on automatic broadcasting for binary opera…
Browse files Browse the repository at this point in the history
…tors (#28950)

(cherry picked from commit bd1e46a)
  • Loading branch information
timziebart authored and KristofferC committed Sep 3, 2018
1 parent b4d82db commit 4649f07
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions doc/src/manual/arrays.md
Original file line number Diff line number Diff line change
Expand Up @@ -692,12 +692,7 @@ The following operators are supported for arrays:
2. Binary arithmetic -- `-`, `+`, `*`, `/`, `\`, `^`
3. Comparison -- `==`, `!=`, `` ([`isapprox`](@ref)), ``

Most of the binary arithmetic operators listed above also operate elementwise
when one argument is scalar: `-`, `+`, and `*` when either argument is scalar,
and `/` and `\` when the denominator is scalar. For example, `[1, 2] + 3 == [4, 5]`
and `[6, 4] / 2 == [3, 2]`.

Additionally, to enable convenient vectorization of mathematical and other operations,
To enable convenient vectorization of mathematical and other operations,
Julia [provides the dot syntax](@ref man-vectorized) `f.(args...)`, e.g. `sin.(x)`
or `min.(x,y)`, for elementwise operations over arrays or mixtures of arrays and
scalars (a [Broadcasting](@ref) operation); these have the additional advantage of
Expand Down

0 comments on commit 4649f07

Please sign in to comment.