-- Bug description --
1)
Calculating the mean value in the 3rd dimension "mean(A,3)", gives an error for input matrices of a certain size:
no error:
"A" sizes (150,1,165), (150,1,166), (1000,1,165), (1000,1,166), (250,1,165)
error:
size (250,1,166)
2)
I am only aware of an error using an input of size (250,1,(166 or greater))
3)
using stacksize('max')
4)
Thanks for any improvements!
Mike Stamm
-- Scilab error message --
!--error 21
Invalid index.
at line 22 of function %hm_sum called by :
line 48 of function mean called by :
mean(test,3);
-- How to reproduce the bug --
Enter the following code:
-->test=rand(150,1,165);
-->mean(test,3);
-->test=rand(150,1,166);
-->mean(test,3);
-->test=rand(1000,1,165);
-->mean(test,3);
-->test=rand(1000,1,166);
-->mean(test,3);
-->test=rand(250,1,165);
-->mean(test,3);
-->test=rand(250,1,166);
-->mean(test,3);
!--error 21
Invalid index.
at line 22 of function %hm_sum called by :
line 48 of function mean called by :
mean(test,3);