Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Generate a random non-singular matrix?

I do this in a loop now:

while:  
    A = random_matrix(...)  
    if(not A.is_singular()):  
        ....

But this is innefficient. How do I generate random matrices with more concrete properties in sage?