Max-plus algebra generalization eigenvalue and eigenvector
[l,v,d] = maxplusmaxalgolgeneral(A)
: a row vector which form of d is [q,\sigma, r,1]
The function valid for both an irreducible and a reducible matrix A, and returns eigenvector and a corresponding eigenvalue of matrix A. If the condition is not satisfied the function returns error. And if numerical error this function maxplusmaxalgol still work but A⊗v≠l⊗v and the norm of A⊗v - (l+v) given by norm(A⊗x - l⊗v)≤4.019D-14 .
If the matrix A irreducible, instead of use function maxalgol, the time computation will more faster.