intersect() with sparse input(s) yields an error
Reported by Samuel GOUGEON (@sgougeon)
BUG DESCRIPTION:
----------------
--> s = int(sprand(10,100,0.01)*100);
--> s2 = int(sprand(10,100,0.01)*100);
--> intersect(s, s2)
at line 23 of function intersect ( SCI\modules\elementary_functions\macros\intersect.sci line 36 )
Invalid index.
ERROR LOG:
----------
See here above.
HOW TO REPRODUCE THE BUG:
-------------------------
s = int(sprand(10,100,0.01)*100);
s2 = int(sprand(10,100,0.01)*100);
intersect(s, s2)
OTHER INFORMATION:
------------------
Bug also in Scilab 6.0.1