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 where(const_array_ref condition, const_array_ref x, const_array_ref y, const execution_context &context, array *out=nullptr)
Select element-wise between two arrays according to a condition.
array clip(const_array_ref x, const_array_ref lower, const_array_ref upper, const execution_context &context, array *out=nullptr)
Confine the elements of an array to an interval.
array maximum(const_array_ref x, const_array_ref y, const execution_context &context, array *out=nullptr)
Take the element-wise maximum of two arrays.
array minimum(const_array_ref x, const_array_ref y, const execution_context &context, array *out=nullptr)
Take the element-wise minimum of two arrays.