Skip to content

Commit f1b6351

Browse files
authored
Add a Warning to Avoid Julia's Broadcatisng in Expressions
Adding a warning to avoid using `.` in expressions. Related to #716.
1 parent ca53242 commit f1b6351

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docs/src/manual/types.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ solve!(problem, SCS.Optimizer)
8484
# Once the problem is solved, we can call evaluate() on expr:
8585
evaluate(expr)
8686
```
87+
!!! warning Julia's broadcasting, using the `.` operator should be avoided. The expression `-log(1.0 .+ A * x)` will fail while `-log(1.0 + A * x)` will be correctly encoded.
8788

8889
## Constraints
8990

0 commit comments

Comments
 (0)