#19275: handle empty matroid in partition
-------------------------------------+-------------------------------------
       Reporter:  chaoxu             |        Owner:
           Type:  defect             |       Status:  needs_review
       Priority:  trivial            |    Milestone:  sage-6.9
      Component:  matroid theory     |   Resolution:
       Keywords:                     |    Merged in:
        Authors:  Chao Xu            |    Reviewers:
Report Upstream:  N/A                |  Work issues:
         Branch:                     |       Commit:
  u/chaoxu/partitiondividebyzero     |  93346eaa75889e5bb189a5b29ccbc727474ae708
   Dependencies:                     |     Stopgaps:
-------------------------------------+-------------------------------------

Comment (by 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.

 > Could you use that for the test since it uses the top-level interface?
 done

--
Ticket URL: <http://trac.sagemath.org/ticket/19275#comment:9>
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.

Reply via email to