File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ A vector of variables can be defined using list comprehension and string interpo
5555
5656``` julia
5757julia> [symbols (" α_$i " ) for i in 1 : 3 ]
58- 3 - element Array{SymEngine . Basic, 1 }:
58+ 3 - element Vector{ Basic}:
5959 α_1
6060 α_2
6161 α_3
@@ -68,7 +68,7 @@ One can use a matrix comprehension, and string interpolation to create a matrix
6868
6969``` julia
7070julia> W = [symbols (" W_$i$j " ) for i in 1 : 3 , j in 1 : 4 ]
71- 3 × 4 Array {Basic, 2 }:
71+ 3 × 4 Matrix {Basic}:
7272 W_11 W_12 W_13 W_14
7373 W_21 W_22 W_23 W_24
7474 W_31 W_32 W_33 W_34
@@ -80,7 +80,7 @@ Now using the matrix we can perform matrix operations:
8080
8181``` julia
8282julia> W* [1.0 , 2.0 , 3.0 , 4.0 ]
83- 3 - element Array {Basic, 1 }:
83+ 3 - element Vector {Basic}:
8484 1.0 * W_11 + 2.0 * W_12 + 3.0 * W_13 + 4.0 * W_14
8585 1.0 * W_21 + 2.0 * W_22 + 3.0 * W_23 + 4.0 * W_24
8686 1.0 * W_31 + 2.0 * W_32 + 3.0 * W_33 + 4.0 * W_34
You can’t perform that action at this time.
0 commit comments