Yo ! > Ah, seems to be quite a compact form!
Yeah, but it only does what you want. Nothing involving more complicated objects like category functions do. > But after two days of wondering I don't know how to generate all lower > triangular matrices with non-zero elements taken from, say, [0,1]. For all > matrices it seems simple: Try to understand how that works then: from itertools import product n = 3 S = [-1,1] for m in product(*[S if i>=j else [0] for i in range(n) for j in range(n)]): m = Matrix(n,n,m) print m.str() print '-'*20 >> P.S. : Sage is open source: when you hate something, come and change it. > > It's not always possible. Or what_to_do to DifferentNamingStyles like > KleinFourGroup vs. is_isomorphic? Believe me: this is the kind of stuff that frequent developpers do not see anymore on sage-devel, and if you don't bring it up it will never change. My answer, which is just a description of what is going on, is that you will see upper case in functions which "create a mathematical object", i.e. a group, a graph, that sort of things, while the methods applied to them are in lower case. But basically I was not even conscious of that, even though I have been applying it for years. So write to sage-devel whenever something feels wrong. This "CartesianProduct" AND "cartesian_product" should be removed. But that's categories, so you never know when that will happen. Have fuuuuuuuun ! Nathann -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.