Missing concatenation overloads between integers and sparse
@sgougeon)
Reported by Samuel GOUGEON (BUG DESCRIPTION:
----------------
Missing concatenation overloads between integers and sparse:
--> [sparse(1), int8(5)]
Undefined operation for the given operands.
check or define function %sp_c_i for overloading.
--> [int8(5), sparse(1)]
Undefined operation for the given operands.
check or define function %i_c_sp for overloading.
--> [int8(5) ; sparse(1)]
Undefined operation for the given operands.
check or define function %i_f_sp for overloading.
--> [sparse(1) ; int8(5)]
Undefined operation for the given operands.
check or define function %sp_f_i for overloading.
There is no issue about these concatenations. We already have
* [integer, double] => double wins:
--> [int8(5), 97]
ans =
5. 97.
* [full, sparse] => sparse wins:
--> [5, sparse(97)]
ans =
( 1, 2) sparse matrix
( 1, 1) 5.
( 1, 2) 97.
So, the result of these 4 concatenations should be sparse.
HOW TO REPRODUCE THE BUG:
-------------------------
[sparse(1) , int8(5)]
[sparse(1) ; int8(5)]
[int8(5) ; sparse(1)]
[int8(5) , sparse(1)]
OTHER INFORMATION:
------------------