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

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

stefanbringuier
Copy link

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.

… Array{SymEngine.Basic,1} (vector) dot product. The method is still bound to LinearAlgebra.jl.
@stefanbringuier stefanbringuier changed the title Array{SymEgine.Basic,1} dot product Array{SymEngine.Basic,1} dot product Feb 10, 2020
@@ -0,0 +1,112 @@
# To use SymEngine from another CMake project include the following in your
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you remove the deps/libsymengine-0.4 folder?

@ranocha
Copy link
Contributor

ranocha commented Oct 8, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants