If the lhs is a number and the rhs an array (or vice-versa) the lhs will be casted to the type of the rhs. This is inconsistent with the C++ API (there's no C API for such a case).
The array created out of the lhs should have the arrayfire types that matches the type of the lhs, or raise an error is no such type exists.
If the lhs is a number and the rhs an array (or vice-versa) the lhs will be casted to the type of the rhs. This is inconsistent with the C++ API (there's no C API for such a case).
The array created out of the lhs should have the arrayfire types that matches the type of the lhs, or raise an error is no such type exists.