grand markov does not generate all outputs
Reported by Pierre-Aime AGNEL
BUG DESCRIPTION:
----------------
grand generator for markov transitions does not compute all the transition asked in Scilab 6
// not working in 6, working in 5
n = 200;
P = [0.1 0.3 0.2 0.01 0.09 0.3 ; ...
0.2 0.1 0.1 0.5 0.05 0.05; ...
0 0 0.2 0.3 0.4 0.1 ; ...
0.4 0 0.1 0.05 0.05 0.4 ; ...
0.1 0.1 0.1 0.3 0.2 0.2 ; ...
0.2 0.2 0.1 0.1 0.2 0.2];
x0 = [1:3];
a=grand(n, "markov", P, x0); // Should be a 3-by-200 matrix
ERROR LOG:
----------
None, the function computes only one value
HOW TO REPRODUCE THE BUG:
-------------------------
// not working in 6, working in 5
n = 200;
P = [0.1 0.3 0.2 0.01 0.09 0.3 ; ...
0.2 0.1 0.1 0.5 0.05 0.05; ...
0 0 0.2 0.3 0.4 0.1 ; ...
0.4 0 0.1 0.05 0.05 0.4 ; ...
0.1 0.1 0.1 0.3 0.2 0.2 ; ...
0.2 0.2 0.1 0.1 0.2 0.2];
x0 = [1:3];
a=grand(n, "markov", P, x0); // Should be a 3-by-200 matrix
OTHER INFORMATION:
------------------
Works in scilab 5.5.2