From 4649f07c0fe65c50d377943cbce3731218bdc1a1 Mon Sep 17 00:00:00 2001 From: timkittel <19408882+timkittel@users.noreply.github.com> Date: Wed, 29 Aug 2018 23:26:31 +0200 Subject: [PATCH] removed outdated paragraph on automatic broadcasting for binary operators (#28950) (cherry picked from commit bd1e46a6774120b4e42f477b3276102ba542da52) --- doc/src/manual/arrays.md | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/doc/src/manual/arrays.md b/doc/src/manual/arrays.md index de54a61617717..4b4c4be24a7ac 100644 --- a/doc/src/manual/arrays.md +++ b/doc/src/manual/arrays.md @@ -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