On Monday, 30 March 2026 at 09:00:32 UTC-7 Georgi Guninski wrote:

> I suggest that you separate the time taken for the change_ring() 
operation 

Thanks. You are right, the .change_ring() was written in a hurry. 
If the sage overlords want more systematic QA, they will need moderate 
budget. 
I need to compute large m-th powers of matrices for m > 100 and if I 
work over ZZ, the integer entries are very large, slowing the wall 
time computation. 


For such high powers you may well be better off first computing the Jordan 
Normal Form of the matrix. Then you only need to take extremely high powers 
of diagonal matrices, which is *way* faster. It can easily be worth the 
cost of the base field extension.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/sage-devel/f64ad0aa-7ac5-4a6d-b90d-75c1dc7e44fcn%40googlegroups.com.

Reply via email to