symengine / SymEngine.jl

Julia wrappers of SymEngine
MIT License
192 stars 43 forks source link

Array{SymEngine.Basic,1} dot product #196

Open stefanbringuier opened 4 years ago

stefanbringuier commented 4 years ago

Added linalgebra.jl which includes proper method(dispatch) for taking Array{SymEngine.Basic,1} (vector) dot product. The method is still bound to LinearAlgebra. This file can serve as a proper place to provide additional SymEngine.jl linear algebra support.

ranocha commented 3 years ago

I think this can be closed since everything works after #233 has been merged:

julia> using SymEngine, LinearAlgebra

julia> v = [ symbols("v_$i") for i=1:4 ]
4-element Vector{Basic}:
 v_1
 v_2
 v_3
 v_4

julia> dot(v, v)
v_1^2 + v_2^2 + v_3^2 + v_4^2