This code is giving me datatype mismatch error.
const double dd = 0.225;
af::array aa = af::constant(111, 10, f32) + dd;
af::array bb = af::constant(111, 10, f64) + dd;
af::eval(aa, bb);
Both aa and bb should be f64 because both add a double value. There shouldn't be a datatype mismatch error.
I got their response on github.com/arrayfire/arrayfire/issues/2426, it remains as f32 after adding the double scalar on purpose. Anyway, it is actually a good thing for me to write program that supports precisions based on the caller's input. So, it is actually a good feature I want to keep. Marking this as resolved.