-
Notifications
You must be signed in to change notification settings - Fork 133
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
PolyhedralGeometry: more operators on fans and complexes #4444
base: master
Are you sure you want to change the base?
Conversation
8617554
to
2a70b17
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #4444 +/- ##
==========================================
- Coverage 84.55% 84.40% -0.16%
==========================================
Files 672 672
Lines 88880 89167 +287
==========================================
+ Hits 75152 75258 +106
- Misses 13728 13909 +181
|
2a70b17
to
0e34c39
Compare
src/PolyhedralGeometry/PolyhedralComplex/standard_constructions.jl
Outdated
Show resolved
Hide resolved
src/PolyhedralGeometry/PolyhedralComplex/standard_constructions.jl
Outdated
Show resolved
Hide resolved
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 ... |
Co-authored-by: Lars Göttgens <lars.goettgens@rwth-aachen.de>
…s.jl Co-authored-by: Lars Göttgens <lars.goettgens@rwth-aachen.de>
1f0294c
to
fc9a919
Compare
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 |
This draft pull request comes from the Leipzig Workshop aims to add the following new operations:
Scalar
*PolyhedralFan
andPolyhedralFan
*Scalar
Scalar
*PolyhedralComplex
andPolyhedralFan
*Scalar
PolyhedralFan
PolyhedralComplex
Vector
+PolyhedralFan
andPolyhedralFan
+Vector
Vector
+PolyhedralComplex
andPolyhedralComplex
+Vector
Questions:
(If yes, I will add the relevant operators for
Cone
, the operators forPolyhedron
already exist)