<< maxplussys Min-Max-Plus And Petrinet maxplustslinsol >>

Min-Max-Plus And Petrinet >> Min-Max-Plus And Petrinet > maxplustrace

maxplustrace

Max-plus algebra trace of a square matrix A

Calling Sequence

[v] = maxplustrace(A)

Parameters

A
: an input square matrix .
v

: an ouput scalar that is the trace of matrix A .

Description

Function returns trace of matrix A

v = a1,1⊕a2,2⊕ ... ⊕an,n

Examples

a  = [ 4. -%inf 1. 11. 18.; 
       15. 13. 11. 5. -%inf;   
       -%inf 17. 13. 5. 13.;  
       7. 14. 15.  -%inf 6.;   
       13. 18. 4. 4. 19.] 
v=maxplustrace(a)

Author

"Max-Plus Algebra And Petrinet Toolbox", ver. 1.1.0, February, 2013.

See Also


Report an issue
<< maxplussys Min-Max-Plus And Petrinet maxplustslinsol >>