#19275: handle empty matroid in partition
-------------------------------------+-------------------------------------
Reporter: chaoxu | Owner:
Type: defect | Status: positive_review
Priority: trivial | Milestone: sage-6.9
Component: matroid theory | Resolution:
Keywords: | Merged in:
Authors: Chao Xu | Reviewers: Travis Scrimshaw
Report Upstream: N/A | Work issues:
Branch: | Commit:
u/chaoxu/partitiondividebyzero | 93346eaa75889e5bb189a5b29ccbc727474ae708
Dependencies: | Stopgaps:
-------------------------------------+-------------------------------------
Changes (by tscrim):
* status: needs_review => positive_review
* reviewer: => Travis Scrimshaw
Comment:
Replying to [comment:9 chaoxu]:
> > You might want to consider changing things so that these could give
you an empty matroid.
> I don't see the use case of a empty matroid, but this would work:
>
> {{{
> Matroid(groundset=[], bases=[[]])
> }}}
>
> > is this correct?
> Yes, it is correct. The empty set is always a base.
Well, somebody may need it as a corner case test. *shrugs*
> > Could you use that for the test since it uses the top-level interface?
> done
Thanks. Positive review.
--
Ticket URL: <http://trac.sagemath.org/ticket/19275#comment:10>
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.