Skip to content

Commit

Permalink
Update arrays.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas authored Feb 22, 2024
1 parent fb814b7 commit f79dcba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/src/manual/arrays.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,16 +158,16 @@ Here we indexed for the element (2,3), but we got back a symbolic indexing expre
```@example arrays
Symbolics.scalarize(AAt[2,3])
```
```@example arrays
```julia
@syms i::Int j::Int
Symbolics.scalarize(AAt[i,j])
```

In general, any scalar expression which is derived from array expressions can be scalarized.

```@example arrays
```julia
#sum(A[:,1]) + sum(A[2,:])#latexify not working
```
```@example arrays
```julia
Symbolics.scalarize(sum(A[:,1]) + sum(A[2,:]))
```

0 comments on commit f79dcba

Please sign in to comment.