Skip to content

Commit 7dfee6a

Browse files
stevengjararslan
authored andcommitted
support dots for unary operators (#20249)
* support dots for unary operators (closes #14161) * docs for unary dot operators * work around #20249
1 parent 7000690 commit 7dfee6a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/src/index.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,9 @@ to perform `^` element-by-element on arrays. For example,
135135
`[1,2,3] ^ 3` is not defined, since there is no standard
136136
mathematical meaning to "cubing" an array, but `[1,2,3] .^ 3`
137137
is defined as computing the elementwise
138-
(or "vectorized") result `[1^3, 2^3, 3^3]`.
138+
(or "vectorized") result `[1^3, 2^3, 3^3]`. Similarly for unary
139+
operators like `!` or ``, there is a corresponding `.√` that
140+
applies the operator elementwise.
139141

140142
```jldoctest
141143
julia> [1,2,3] .^ 3

0 commit comments

Comments
 (0)