I read from the documentation of array fire that one can construct an array fire array from host pointer. Something like
double * host_data;
//do stuff with host_data
af::array array(nrows, ncols, host_data); //suppose is a nrows by ncols array
Yes, the host pointer is used to deduce the type of the Array. That's why this specific constructor does not have an argument for explicitly passing in the type.