Re: [Scilab-users] Adding a matrix with the empty matrix will give an empty matrix

2017-03-27 Thread Viktor Mileikovskyi
Yes! I agree with this change. But constructions with condition in the left part such as y(x>10)=y(x>10)+1; at false condition cause the same result in 5.5.2 and 6.0.0. Therefore, the warning is not required in this special case. Now I will use additional "if" block to bypass this warning: if

Re: [Scilab-users] Adding a matrix with the empty matrix will give an empty matrix

2017-03-27 Thread tim
Wait. That's a major change in behavior, and will result in some broken code out here in user-land: -->getversion ans = scilab-5.5.2 -->A = rand(3,3) A = 0.0683740 0.7263507 0.2320748 0.5608486 0.1985144 0.2312237 0.6623569 0.5442573 0.2164633 -->A = A + [] A = 0.0683740 0.7263507 0.232

[Scilab-users] Adding a matrix with the empty matrix will give an empty matrix

2017-03-27 Thread Viktor Mileikovskyi
Dear members! I have problems with new warning "Warning adding a matrix with the empty matrix will give an empty matrix result.". A construction such as y(x>10)=y(x>10)+1; produce the warning in 6.0.0 version if all of x<10. It is very critical if such construction is in a cost function o