@@ -151,13 +151,14 @@ it can combine arrays and scalars, arrays of the same size (performing
151
151
the operation elementwise), and even arrays of different shapes (e.g.
152
152
combining row and column vectors to produce a matrix). Moreover, like
153
153
all vectorized "dot calls," these "dot operators" are
154
- * fusing* . For example, if you compute ` 2 .* A.^2 .+ sin.(A) ` for an
155
- array ` A ` , it performs a * single* loop over ` A ` , computing ` 2a^2 + sin(a) `
154
+ * fusing* . For example, if you compute ` 2 .* A.^2 .+ sin.(A) ` (or
155
+ equivalently ` @. 2A^2 + sin(A) ` , using the [ ` @. ` ] (@ref @__ dot__ ) macro) for
156
+ an array ` A ` , it performs a * single* loop over ` A ` , computing ` 2a^2 + sin(a) `
156
157
for each element of ` A ` . In particular, nested dot calls like ` f.(g.(x)) `
157
158
are fused, and "adjacent" binary operators like ` x .+ 3 .* x.^2 ` are
158
159
equivalent to nested dot calls ` (+).(x, (*).(3, (^).(x, 2))) ` .
159
160
160
- Furthermore, "dotted" updating operators like ` a .+= b ` are parsed
161
+ Furthermore, "dotted" updating operators like ` a .+= b ` (or ` @. a += b ` ) are parsed
161
162
as ` a .= a .+ b ` , where ` .= ` is a fused * in-place* assignment operation
162
163
(see the [ dot syntax documentation] (@ref man-vectorized)).
163
164
0 commit comments