Skip to content

Commit 5c02127

Browse files
[docs] add a warning to avoid Julia's broadcasting in expressions (#717)
Co-authored-by: Eric Hanson <[email protected]>
1 parent ca53242 commit 5c02127

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docs/src/manual/types.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,11 @@ solve!(problem, SCS.Optimizer)
8585
evaluate(expr)
8686
```
8787

88+
!!! warning
89+
Avoid using Julia's broadcasting (the `.` operator). As an example, the
90+
expression `-log(1.0 .+ A * x)` will fail while `-log(1.0 + A * x)` will
91+
succeed.
92+
8893
## Constraints
8994

9095
*Constraints* in Convex.jl are declared using the standard comparison

0 commit comments

Comments
 (0)