#15296: LinearMatroid can't use sets for fundamentals
----------------------------------+-------------------------
       Reporter:  Stefan          |        Owner:
           Type:  defect          |       Status:  new
       Priority:  major           |    Milestone:  sage-5.13
      Component:  matroid theory  |   Resolution:
       Keywords:                  |    Merged in:
        Authors:                  |    Reviewers:
Report Upstream:  N/A             |  Work issues:
         Branch:                  |       Commit:
   Dependencies:                  |     Stopgaps:
----------------------------------+-------------------------
Description changed by Stefan:

Old description:

> Several methods in LinearMatroid have an option {{{fundamentals}}}.
> Internally, this gets used as a set, and we test things like {{{p in
> fundamentals}}}. Even though both {{{p}}} and the elements of
> {{{fundamentals}}} come from the same ring or field, it is not guaranteed
> (and sometimes false) that {{{p == q}}} implies {{{hash(p) == hash(q)}}}.
>
> The default behavior of these methods should therefore be to test for
> equality with each member of {{{fundamentals}}}, instead of relying on
> the {{{in}}} keyword. An optional argument (such as
> {{{use_fast_fundamental_test}}} with default option False can be used to
> speed up computations when appropriate.

New description:

 Several methods in LinearMatroid have an option {{{fundamentals}}}.
 Internally, this gets used as a set, and we test things like {{{p in
 fundamentals}}}. Even though both {{{p}}} and the elements of
 {{{fundamentals}}} come from the same ring or field, it is not guaranteed
 (and sometimes false) that {{{p == q}}} implies {{{hash(p) == hash(q)}}}.

 The default behavior of these methods should therefore be to test for
 equality with each member of {{{fundamentals}}}, instead of relying on the
 {{{in}}} keyword. An optional argument (such as
 {{{use_fast_fundamental_test}}} with default option False can be used to
 speed up computations when appropriate.

 See #15297 for a change that makes the fast_fundamental_test work for a
 larger group of fields.

--

--
Ticket URL: <http://trac.sagemath.org/ticket/15296#comment:1>
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 http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to