Skip to content

Commit a34c325

Browse files
jverzaniisuruf
authored andcommitted
run doctest(SymEngine, fix=true)
1 parent fd24998 commit a34c325

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

docs/Project.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
[deps]
22
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
33
SymEngine = "123dc426-2d89-5057-bbad-38513e3affd8"
4+
5+
[compat]
6+
Documenter = "1"

docs/src/basicUsage.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Vectors can be defined through list comprehension and string interpolation.
4343
julia> using SymEngine
4444
4545
julia> [symbols("α_$i") for i in 1:3]
46-
3-element Array{Basic,1}:
46+
3-element Vector{Basic}:
4747
α_1
4848
α_2
4949
α_3
@@ -56,7 +56,7 @@ In an analogous manner, matrices are declared with a combination of string inter
5656
julia> using SymEngine
5757
5858
julia> W = [symbols("W_$i$j") for i in 1:3, j in 1:4]
59-
3×4 Array{Basic,2}:
59+
3×4 Matrix{Basic}:
6060
W_11 W_12 W_13 W_14
6161
W_21 W_22 W_23 W_24
6262
W_31 W_32 W_33 W_34
@@ -70,13 +70,13 @@ Consider the canonical example of **matrix vector multiplication**.
7070
julia> using SymEngine
7171
7272
julia> W = [symbols("W_$i$j") for i in 1:3, j in 1:4]
73-
3×4 Array{Basic,2}:
73+
3×4 Matrix{Basic}:
7474
W_11 W_12 W_13 W_14
7575
W_21 W_22 W_23 W_24
7676
W_31 W_32 W_33 W_34
7777
7878
julia> W*[1.0, 2.0, 3.0, 4.0]
79-
3-element Array{Basic,1}:
79+
3-element Vector{Basic}:
8080
1.0*W_11 + 2.0*W_12 + 3.0*W_13 + 4.0*W_14
8181
1.0*W_21 + 2.0*W_22 + 3.0*W_23 + 4.0*W_24
8282
1.0*W_31 + 2.0*W_32 + 3.0*W_33 + 4.0*W_34

0 commit comments

Comments
 (0)