1 | initial version |
I don't know about SMC but I assume that you have to be a customer to upload certain big files?
Sage notebook txt files need to be in the format of a Sage worksheet on the "edit" tab, which looks like this:
<p>Powers of diagonalizable matrices! You have to get a pretty high power, but eventually diagonalization <em>is</em> faster.</p>
{{{id=2|
M = matrix(3,[0,1,1,1,0,1,1,1,0])
///
}}}
{{{id=15|
timeit('M^100000')
///
25 loops, best of 3: 9.74 ms per loop
}}}
{{{id=20|
D,P=M.jordan_form(transformation=True); Pinv=P^-1; D = D.change_ring(ZZ)
///
}}}
{{{id=16|
timeit('D,P=M.jordan_form(transformation=True); Pinv=P^-1')
///
25 loops, best of 3: 39.3 ms per loop
}}}
{{{id=19|
timeit('Pinv*D^100000*P')
///
125 loops, best of 3: 1.27 ms per loop
}}}
By the way, you should be able to use nauty inside of Sage now anyway?