<< maxpluspwr Min-Max-Plus And Petrinet maxplusscg >>

Min-Max-Plus And Petrinet >> Min-Max-Plus And Petrinet > maxpluspwrbig

maxpluspwrbig

Max-plus algebra the big power of A (i.e. A⊗m, 2p = m ≥ n)

Calling Sequence

[Z] = maxpluspwrbig(A,n)

Parameters

A
: square input matrix
n
: nonnegative integer
Z
: output matrix Z = A ⊗m , where m = 2^ceil(log2(n)).

Description

This function returns Z = A⊗m, where m =2p with p is the smallest integer that satisfy 2p = m ≥ n. And n is not exceed 10300.

Examples

A = sprand(5,5,0.7);
k = find(A == 0);
A(k) = -%inf;
A = round(10*A);
A = full(A)
Z = maxpluspwrbig(A,10^100)

Authors

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

See Also


Report an issue
<< maxpluspwr Min-Max-Plus And Petrinet maxplusscg >>