grand(1,"prm",m) yields an unsqueezed size([size(m) 1]) hypermatrix (Regression)
Reported by Samuel GOUGEON (@sgougeon)
BUG DESCRIPTION:
----------------
Scilab 5.5.2 was OK. Scilab 6.0 shows the following bug:
--> m = rand(2,3)
m =
0.6488563 0.050042 0.4104059
0.9923191 0.7485507 0.6084526
--> m = grand(1,"prm",m)
m =
(:,:,1) <<<<<<<<<<<
0.7485507 0.9923191 0.4104059
0.050042 0.6084526 0.6488563
--> size(m) // !
ans =
2. 3. 1.
--> ndims(m)
ans =
3.
ERROR LOG:
----------
none. Unsqueezed result. The final singleton dimension should be automatically squeezed.
HOW TO REPRODUCE THE BUG:
-------------------------
m = rand(2,3);
m = grand(1,"prm",m);
ndims(m)==2
and(size(m)==[2 3])