repmat: anomaly with empty matrix (empty hypermatrix)
Reported by Alain Lamy
BUG DESCRIPTION:
----------------
repmat applied to [] returns a strange result in some cases.
(=> matrix of size 0,0,N instead of []).
The result should be [] instead.
Because otherwise, there is a lack of consistency => see examples below.
HOW TO REPRODUCE THE BUG:
-------------------------
M = repmat([], [1,1,3])
// same result with repmat([], [2,2,3])
size(M)
// => 0 0 3
isempty(M)
// => F
// M is not the empty matrix ?
zeros(M)
// => []
// yes, M is the empty matrix !
OTHER INFORMATION
-----------------
tested with Scilab 5.5.1 (windows)