Skip to content

Documentation on monomial orderings #4168

Open
@thofma

Description

@thofma

At some point in time, Dan introduced the following important piece of information in the documentation (important for people who not want to write slow code):

!!! note
    As the above functions take an arbitrary ordering, they are much slower than
    the versions from AbstractAlgebra, which use the natural ordering in the
    parent polynomial ring: `default_ordering(parent(f))` is not necessarily
    this natural ordering. If this ordering of the parent is desired, or if the
    ordering is not important, it is recommended to use the following.
    - `AbstractAlgebra.coefficients(f)`
    - `zip(AbstractAlgebra.coefficients(f), AbstractAlgebra.exponent_vectors(f))`
    - `AbstractAlgebra.exponent_vectors(f)`
    - `AbstractAlgebra.monomials(f)`
    - `AbstractAlgebra.terms(f)`
    - `AbstractAlgebra.leading_coefficient(f)`
    - `AbstractAlgebra.leading_exponent_vector(f)`
    - `AbstractAlgebra.leading_monomial(f)`
    - `AbstractAlgebra.leading_term(f)`

It appears that this was removed in #1760. @wdecker @ederc not sure if this was on purpose? If so, do you mind if we reintroduce it? Maybe in the developer documentation part?

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions