max-plus algebra maximum cycle mean
[mcm] = maxplusmcm(A)
Function returns maximum cycle mean of matrix A
mcm = ⊕k≥1 (⊕i [ A⊗k]i,i )⊗1/k .
Note that, trace of the power matix A⊗k equal to ⊕i [ A⊗k]i,i . More detailed, see :
Bernd Heidergott, Geert Jan Olsder, and Jacob van der Woude, "Max Plus at Work Modelling andAnalysis of Synchronized Systems: A Course on Max-Plus Algebra and Its Application" , Princeton University Press, (2006).
Function return error if the cycle mean vector of matrix A contains difference elements.