Pairs the hardware resources and the dispatch strategy used to run operations.
Definition execution_context.hpp:43
Arrays, the operations on them and the devices that run those operations.
Definition cpu_device.hpp:10
array cast(array &input, numerical_type target_type, const execution_context &context)
Cast an array to a given numerical type.
array cast_copy(const_array_ref input, numerical_type target_type, const execution_context &context, array *out=nullptr)
Cast an array to a given numerical type into a new array.