arithmetic operators give wrong results with booleans
@mottelet)
Reported by Stéphane MOTTELET (BUG DESCRIPTION:
----------------
arithmetic operators give wrong results with booleans. There is also a problem with type output, and result depending if operands are scalars or matrices
HOW TO REPRODUCE THE BUG:
-------------------------
//result logically correct should be promoted to [2 2]
--> [%t %t]+[%t %t]
ans =
T T
//result is completely incorrect w.r.t. type and value
--> %t+%t
ans =
F