-
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
Rename isweighted
-> is_weighted
#2953
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ export is_global | |
export is_local | ||
export is_mixed | ||
export is_total | ||
export isweighted | ||
export is_weighted | ||
export lex | ||
export matrix_ordering | ||
export monomial_ordering | ||
|
@@ -124,7 +124,7 @@ function _unique_var_indices(a::AbstractVector{<:MPolyRingElem}) | |
return z | ||
end | ||
|
||
function isweighted(ord::Symbol) | ||
function is_weighted(ord::Symbol) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I find this method problematic: in how far is a symbol weighted? This is perhaps OK for an internal helper, but not for something we export. I would suggest to call this There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I have the impression that this function should be removed completely. It is not used (apparently it was used originally for a It looks like one could easily implement this with
but no guarantee. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The reason why I opened this PR is that I need this for #2936. Users should be able to provide an ordering via symbol as an input there. So please don't remove |
||
return ord == :wdeglex || ord == :wdegrevlex || | ||
ord == :negwdeglex || ord == :negwdegrevlex | ||
end | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I find this method problematic -- why is a projective space in which all weights are 1 "not weighted" ?