<< minplusotimes MaxPlusAndPetrinet minplusstar >>

MaxPlusAndPetrinet >> MaxPlusAndPetrinet > minpluspwr

minpluspwr

Min-plus algebra the power of A

Calling Sequence

[Z] = minpluspwr(A,n)

Parameters

A
: square input matrix
n
: an input non negative integer.
Z
: output matrix, that is equal to A ⊗'n

Description

This function returns Z = A⊗'n and, Z is an maxplus identity if n = 0. If A is a square matrix, n must be non-negative integers. If A is not a square matrix or n is not nonnegative integers the operation is not defined.

Examples

a=[%inf %inf %inf 17; 
   4. 7. %inf %inf;   
   %inf %inf %inf 14;  
   15. 13. 13. %inf];  
z=minpluspwr(a,0)
z=minpluspwr(a,4)  
// Since ℝmax ≅ ℝmin
// we get minpluspwr(a,7)=-maxpluspwr(-a,7)
isequal(minpluspwr(a,7),-maxpluspwr(-a,7))   
// An error output if n < 0    
z=minpluspwr(a,-4)
// The dimension of matrix is not square ( 4 x 3),
// returns error
a=[%inf  %inf 13;  
   18. 11. %inf;  
   %inf %inf %inf;   
   1. %inf %inf];
z=minpluspwr(a,4)

Authors

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

See Also


Report an issue
<< minplusotimes MaxPlusAndPetrinet minplusstar >>