On Fri, Jun 12, 2009 at 09:17:29AM +0100, John Cremona wrote: > > 2009/6/12 Rob Beezer <goo...@beezer.cotse.net>: > > > > Hi John, > > > > Thanks for the reply, the suggestions and the examples. I've seen the > > Factorization object and briefly thought of building a Spectrum > > object, but thought it sounded like overkill. But maybe I can just > > subclass Factorization and override the _repr_ method (or similar) to > > print the spectrum without the multiplication symbols, etc. > > I think there's a case for having a more basic class for holding > "things with multiplicities"; the the spectrum could be one of these > (or a class derived from it) and Factorization would also be a derived > class. > > For example, I believe that the Factorization class is used to hold > direct sum decompositions of modular symbol spaces (i.e. direct > summands of some module) where some of the class makes sense but not > all of it (not the unit factor, for a start); this could be instead > an element of our more basic class, or of another derived class > specifically for DirectSumDecompositions.
+1. We definitely need a good class for multisets. Cheers, Nicolas -- Nicolas M. ThiƩry "Isil" <nthi...@users.sf.net> http://Nicolas.Thiery.name/ --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to sage-devel-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---