sqrt doesn't work on hypermatrices in Scilab v 6.0.0 alpha1
Reported by labergri
BUG DESCRIPTION:
----------------
In scilab6.0.0 alpha1 the function sqrt computes the square root of the elements of only one part of the hypermat.
This problem doesn't exist in v5.5.1
ERROR LOG:
----------
--> a(1:2,1:2,1:2)=0;
--> a(:)=(1:8).^2
a =
(:,:,1)
1. 9.
4. 16.
(:,:,2)
25. 49.
36. 64.
--> sqrt(a)
ans =
1. 3.
2. 4.
HOW TO REPRODUCE THE BUG:
-------------------------
a(1:2,1:2,1:2)=0;
a(:)=(1:8).^2
sqrt(a)
OTHER INFORMATION:
------------------
In v 5.5.1 sqrt(a) gives the square root of each elements :
-->sqrt(a)
ans =
(:,:,1)
1. 3.
2. 4.
(:,:,2)
5. 7.
6. 8.