Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

run doctest(SymEngine, fix=true) #269

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions docs/Project.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[deps]
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
SymEngine = "123dc426-2d89-5057-bbad-38513e3affd8"

[compat]
Documenter = "1"
8 changes: 4 additions & 4 deletions docs/src/basicUsage.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Vectors can be defined through list comprehension and string interpolation.
julia> using SymEngine

julia> [symbols("α_$i") for i in 1:3]
3-element Array{Basic,1}:
3-element Vector{Basic}:
α_1
α_2
α_3
Expand All @@ -56,7 +56,7 @@ In an analogous manner, matrices are declared with a combination of string inter
julia> using SymEngine

julia> W = [symbols("W_$i$j") for i in 1:3, j in 1:4]
3×4 Array{Basic,2}:
3×4 Matrix{Basic}:
W_11 W_12 W_13 W_14
W_21 W_22 W_23 W_24
W_31 W_32 W_33 W_34
Expand All @@ -70,13 +70,13 @@ Consider the canonical example of **matrix vector multiplication**.
julia> using SymEngine

julia> W = [symbols("W_$i$j") for i in 1:3, j in 1:4]
3×4 Array{Basic,2}:
3×4 Matrix{Basic}:
W_11 W_12 W_13 W_14
W_21 W_22 W_23 W_24
W_31 W_32 W_33 W_34

julia> W*[1.0, 2.0, 3.0, 4.0]
3-element Array{Basic,1}:
3-element Vector{Basic}:
1.0*W_11 + 2.0*W_12 + 3.0*W_13 + 4.0*W_14
1.0*W_21 + 2.0*W_22 + 3.0*W_23 + 4.0*W_24
1.0*W_31 + 2.0*W_32 + 3.0*W_33 + 4.0*W_34
Expand Down
Loading