min(hypermat, idim) and max(hypermat, idim) consider idim>2 as a scalar operand, with no way to compute along a dimension >2
Reported by Samuel GOUGEON (@sgougeon)
BUG DESCRIPTION:
----------------
-->max(rand(2,2,2),"c")
ans =
(:,:,1)
0.3076091
0.9329616
(:,:,2)
0.5664249
0.4826472
-->max(rand(2,2,2),2)
ans =
(:,:,1)
2. 2.
2. 2.
(:,:,2)
2. 2.
2. 2.
Similar results with Scilab 6.0
ERROR LOG:
----------
wrong behavior
HOW TO REPRODUCE THE BUG:
-------------------------
max(rand(2,2,2), 2)
max(rand(2,2,2), 3)
OTHER INFORMATION:
------------------
If argin#2 is considered as another operand instead of an option, an error should be produced, since all operands are expected having the same sizes.
The report aims to implement the idim option instead.