Nemocas / AbstractAlgebra.jl

Generic abstract algebra functionality in pure Julia (no C dependencies)
https://nemocas.github.io/AbstractAlgebra.jl/dev/index.html
Other
162 stars 62 forks source link

Improve abstract/generic split #901

Open wbhart opened 3 years ago

wbhart commented 3 years ago

Recently (on PR #887) we split the generic code in AbstractAlgebra into implementations for abstract types (in src) and implementations for generic types (in src/generic). However, this was a first order approximation to the task. Some improvements could be made over time. Note that not all these suggestions are sensible and we should discuss whether we actually want them or not.

tthsqe12 commented 3 years ago

Here are some more things. This function is in the abstract section right? Yet the function doesn't work on all implementations. Furthermore, it makes assumptions about decending exponents, which is not correct in general.

https://github.com/Nemocas/AbstractAlgebra.jl/blob/77d74785c14f22d14917b4fff94dc56de9ed1b65/src/MPoly.jl#L1000-L1026

EDIT: This is fixed now