-
Notifications
You must be signed in to change notification settings - Fork 3
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
Allow multiplication with different algebras #55
base: main
Are you sure you want to change the base?
Conversation
As expressed in our long call I think we need something better here, namely we need something (a struct)? that is going to combine Gramm (psd) constraint basis, Gramm matrix and (linear) constraint basis. What is the actual code that needs these? I bet (not too much though :D) it is not a simple |
I don't know if we need to add the quadratic form in StarAlgebras. In SumOfSquares, I simply redirect |
how about redirecting it to
So far we have assumed that |
The operate_to(::UnsafeAddMul, res::AlgebraElement, s::GramMatrix, f::AlgebraElement, b::AlgebraElement) that becomes operate_to(::UnsafeAddMul, res::AlgebraElement, a::AlgebraElement, b::AlgebraElement, f::AlgebraElement) where each |
As I said, I'm against overloading the poor |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #55 +/- ##
==========================================
- Coverage 86.26% 86.24% -0.02%
==========================================
Files 14 14
Lines 757 756 -1
==========================================
- Hits 653 652 -1
Misses 104 104
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
This PR, in addition to allowing to deal with SymbolicWedderburn decomposition by defining a custom MultiplicativeStructure, also allow doing JuliaAlgebra/MultivariateBases.jl#50, which suggest it might be a good direction :) |
Useful for kalmarek/SymbolicWedderburn.jl#79