Mixed (integer, double) horizontal and vertical concatenations are not supported
Reported by Samuel GOUGEON (@sgougeon)
BUG DESCRIPTION:
----------------
Mixed (integer, double) horizontal and vertical concatenations are not supported:
--> [12, int8(5)]
Undefined operation for the given operands.
check or define function %s_c_i for overloading.
--> [int8(5) 12]
Undefined operation for the given operands.
check or define function %i_c_s for overloading.
--> [int8(5) ; 12]
Undefined operation for the given operands.
check or define function %i_f_s for overloading.
--> [12 ; int8(5)]
Undefined operation for the given operands.
check or define function %s_f_i for overloading.
ERROR LOG:
----------
See messages above.
HOW TO REPRODUCE THE BUG:
-------------------------
[12 , int8(5)]
[int8(5) , 12]
[int8(5) ; 12]
[12 ; int8(5)]
OTHER INFORMATION:
------------------
Integers must be promoted to double (as in Julia).
This is the best way
- to get a stable output type (double) without respect to the input integer subtype
- to avoid truncating some information, as much as possible.
Only the 1-10 lightest bits of u-int64 numbers > 2^53 will be lost.
The documentation will have to warn the user about this, in order to manage
inputs upstream, if this side effect must be prevented.