Hello,
So I have been trying to produce an algorithm for unsymmetric matrices which finds the smallest magnitude eigen value.
I have found this:
cfafcf24b5563ebb8aad4395c3c90ff0cfafcf24b5563ebb8aad4395c3c90ff0
However, I still don't know how to implement it in python. Can someone help out or provide psudocode/code ?

The first question I will ask is, how are you representing the matrices? The most common matrix representions in Python would be as a list of lists, or (for constant matrices) a tuple of tuples. However, if you intend more elaborate operations, it may make sense to wrap that in a class. How are you representing them, and why?

I would use numpy and represent the matrix as an ARRAY datatype. Additionally, I'd look around numpy to see if somebody has already solved your problem. If not, please submit your solution when you got it working.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.