Add transformations for polyhedral fans and complexes#4444
Add transformations for polyhedral fans and complexes#4444
Conversation
8617554 to
2a70b17
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #4444 +/- ##
==========================================
- Coverage 84.19% 83.99% -0.20%
==========================================
Files 715 721 +6
Lines 97732 98528 +796
==========================================
+ Hits 82283 82760 +477
- Misses 15449 15768 +319
🚀 New features to boost your workflow:
|
2a70b17 to
0e34c39
Compare
|
I think it does make sense to have such operations but they should not be limited to rationals and compatible types but probably use You can try with Edit: And the first argument for the new object should always be the coefficient field of the old object, e.g. |
81c6bc0 to
1f0294c
Compare
|
@benlorenz I tried changing the code as you suggested, but I cannot get it to work. Can you check why the the following addition is undefined? I was hoping for it to call the following added line in |
julia> Oscar.scalar_types_extended
Union{Float64, FieldElem, ZZRingElem}it seems that |
|
In that case, the simplest solution would probably be added all the missing types to |
|
I had a look at other uses of that union and it should be fine to change it to Edit: it looks like this might need some extra changes for the ray- and pointvectors ... |
fc9a919 to
8dbe909
Compare
|
from #4445 (comment)
from #4445 (comment)
Thanks, I am aware of the issue and will take a look. |
|
The broadcast errors should be fixed now (and I fixed a small issue in the fan negation). I think most of these constructions would benefit from adding |
|
What the status of this PR? |
|
Sorry for sleeping on this PR, I will look into it and see whether it is mergeable. |
Co-authored-by: Lars Göttgens <lars.goettgens@rwth-aachen.de>
…s.jl Co-authored-by: Lars Göttgens <lars.goettgens@rwth-aachen.de>
…s.jl Co-authored-by: Benjamin Lorenz <benlorenz@users.noreply.github.com>
…s.jl Co-authored-by: Max Horn <max@quendi.de>
…s.jl Co-authored-by: Lars Kastner <lkastner@users.noreply.github.com>
|
The formatter complains now, but that could be addressed by running The main question is whether @lkastner and @benlorenz are happy with the the general content now, the formatting is an easy afterthought. |
I've run the formatting script and pushed the changes. |
lkastner
left a comment
There was a problem hiding this comment.
Thank you. We should probably expand transform on the polymake side though.
This draft pull request comes from the Leipzig Workshop aims to add the following new operations:
Scalar*PolyhedralFanandPolyhedralFan*ScalarScalar*PolyhedralComplexandPolyhedralFan*ScalarPolyhedralFanPolyhedralComplexVector+PolyhedralFanandPolyhedralFan+VectorVector+PolyhedralComplexandPolyhedralComplex+VectorQuestions:
(If yes, I will add the relevant operators for
Cone, the operators forPolyhedronalready exist)