On 2014-11-07, Jori Mantysalo <[email protected]> wrote: > What is fastest way in Sage to compute biggest eigenvalue of a symmetric > matrix whose elements are positive integers? > > import numpy > max(numpy.linalg.eigvalsh(M)) > > is quite fast, but it computes all eigenvalues and I want only one. stackoverflow has recepies how to do it with numpy or scipy; see e.g. question 12167654
HTH, Dima > > -- > Jori Mäntysalo > -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.
