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()


>
> N=3; v=[0,1];
> p=product(product(v, repeat=N), repeat=N)
> print matrix(ZZ, p.next())
> print matrix(ZZ, p.next())
>  . . .
>
>
>> 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?
>
> --
> Jori Mäntysalo
>
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "sage-support" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/sage-support/OqnJVbY7NRU/unsubscribe.
> To unsubscribe from this group and all its topics, 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.

-- 
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.

Reply via email to