Opened 10 years ago

Last modified 10 years ago

#13434 needs_work enhancement

Listing elements in Cartesian Products for Sets

Reported by: Chris Berg Owned by: Chris Berg
Priority: major Milestone: sage-wishlist
Component: basic arithmetic Keywords: Cartesian Product
Cc: Merged in:
Authors: Chris Berg Reviewers:
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges

Description

Right now, CartesianProduct? has no attribute 'list'. One would like to be able to index the elements of a Cartesian product. For instance:

S = Set([1,2])
C = S.cartesian_product(S)
C.list()

Change History (2)

comment:1 Changed 10 years ago by Andreas Ruscheinski

Status: newneeds_review
S = Set([1,2])
C = CarstesianProduct(S,S)
C.list()

works.

Last edited 10 years ago by Andreas Ruscheinski (previous) (diff)

comment:2 Changed 10 years ago by Travis Scrimshaw

Status: needs_reviewneeds_work

Those are different objects, and yes, it is somewhat confusion (I believe there's a ticket already about/related to this). So there is something to be fixed here.

Note: See TracTickets for help on using tickets.