Segmentation fault on false sparse matrix logical OR
Bug Description
Logical OR with false sparse matrix as left operand leads to a segmentation fault (Scilab 6.0.1).
Steps to reproduce
sparse(%f) | %f
sparse(%f) | %t
sparse(%f) || %f
sparse(%f) || %t
What is the expected correct behavior?
Correct output similar to
sparse(%t) || %f
Any other combination works as expected, including
%f || sparse(%f)
Temporary fix
One can have expected result with
full(sparse(%f)) || %f
and(sparse(%f)) || %f
Edited by Erwan Privat