#15296: LinearMatroid can't use sets for fundamentals
----------------------------------+------------------------
Reporter: Stefan | Owner:
Type: defect | Status: new
Priority: major | Milestone: sage-6.4
Component: matroid theory | Resolution:
Keywords: | Merged in:
Authors: | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
Dependencies: | Stopgaps:
----------------------------------+------------------------
Comment (by Rudi):
Hi Stefan,
There are several methods in LinearMatroid that need to be adjusted for
this, roughly _line_ratios() through _cross_ratio_test() in the
linear_matroid.pyx source. I would suggest writing a second version for
each of these routines which is safe for field of fractions, keeping the
unsafe but fast version to use for `safe' fields. The initializer of
LinearMatroid should sniff out the unsafe fields and make sure that in
such cases the safe methods get called throughout.
Now in c++ I would know how to do this, simply let the initializer replace
the the pointers to the unsafe methods by pointers to their corresponding
safe versions, but can this be done in cython? If so, I propose I write
the safe versions and you fix up the initializer to finish up.
Rudi
--
Ticket URL: <http://trac.sagemath.org/ticket/15296#comment:5>
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/d/optout.