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 matmul(const_array_ref x, const_array_ref y, const execution_context &context, array *out=nullptr)
Multiply two arrays as stacks of matrices.
array cross(const_array_ref x, const_array_ref y, std::ptrdiff_t axis, const execution_context &context, array *out=nullptr)
Take the cross product of two arrays along one axis.
array vecmat(const_array_ref x, const_array_ref y, const execution_context &context, array *out=nullptr)
Multiply a stack of vectors by a stack of matrices.
array vecdot(const_array_ref x, const_array_ref y, std::ptrdiff_t axis, const execution_context &context, array *out=nullptr)
Contract two arrays along one axis, broadcasting the rest.
array matvec(const_array_ref x, const_array_ref y, const execution_context &context, array *out=nullptr)
Multiply a stack of matrices by a stack of vectors.