Opened 8 years ago

Last modified 8 years ago

#13434 needs_work enhancement

Listing elements in Cartesian Products for Sets

Reported by: chrisjamesberg 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:


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)

Change History (2)

comment:1 Changed 8 years ago by LostPw

  • Status changed from new to needs_review
S = Set([1,2])
C = CarstesianProduct(S,S)


Last edited 8 years ago by LostPw (previous) (diff)

comment:2 Changed 8 years ago by tscrim

  • Status changed from needs_review to needs_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.