void *array::alloc(size_t elements, af_dtype type) { void *ptr; AF_THROW(af_alloc_device(&ptr, elements * size_of(type))); // FIXME: Add to map return ptr; }
void *alloc(const size_t elements, const af::dtype type) { void *ptr; AF_THROW(af_alloc_device(&ptr, elements * size_of(type))); // FIXME: Add to map return ptr; }