#14666: Test if a weight function is generic for a given matroid
-------------------------------------+-------------------------------------
Reporter: Stefan | Owner: Stefanf
Type: enhancement | Status: needs_review
Priority: minor | Milestone: sage-7.2
Component: matroid theory | Resolution:
Keywords: matroid, weight | Merged in:
function | Reviewers:
Authors: | Work issues:
Report Upstream: N/A | Commit:
Branch: | c75ee707326fc1cc1beb0e265359c0f93cb84ac2
public/ticket/14666 | Stopgaps:
Dependencies: |
-------------------------------------+-------------------------------------
Comment (by tara):
Replying to [comment:34 darij]:
> Nice, this looks a lot better. But I still struggle to find a mental
model for `smres`. From your description of the algorithm, it should be
the list containing all elements of `res` having higher weight than `e`,
and `e` itself. But from the code, it seems to be the list containing all
elements of `res` having higher weight than `e`, and the first element of
`res` that has the same weight as `e` (because `e` does not get appended
to `smres` unless `e` sets a negative weight record). Am I reading the
code right, and is this an actual issue? Thank you!
You're correct, there was a problem with `smres`. I wasn't adding `e` to
it all the time. I had moved some things about to make it read nicer, and
introduced that bug.
--
Ticket URL: <http://trac.sagemath.org/ticket/14666#comment:35>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.