5#include <rexlib/core/ndarray/array.hpp>
6#include <rexlib/core/ndarray/const_array_ref.hpp>
13class execution_context;
Container for multidimensional numeric data.
Definition array.hpp:31
Non-owning read-only reference to an array.
Definition const_array_ref.hpp:36
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 floor_divide(const_array_ref x, const_array_ref y, const execution_context &context, array *out=nullptr)
Compute the element-wise floor division of two arrays.
array abs(const_array_ref x, const execution_context &context, array *out=nullptr)
Compute the element-wise absolute value of an array.
array multiply(const_array_ref x, const_array_ref y, const execution_context &context, array *out=nullptr)
Compute the element-wise product of two arrays.
array subtract(const_array_ref x, const_array_ref y, const execution_context &context, array *out=nullptr)
Compute the element-wise difference of two arrays.
std::pair< array, array > divmod(const_array_ref x, const_array_ref y, const execution_context &context, array *quotient=nullptr, array *remainder=nullptr)
Compute the element-wise quotient and remainder of two arrays.
array modulo(const_array_ref x, const_array_ref y, const execution_context &context, array *out=nullptr)
Compute the element-wise modulo of two arrays.
array divide(const_array_ref x, const_array_ref y, const execution_context &context, array *out=nullptr)
Compute the element-wise quotient of two arrays.
array sign(const_array_ref x, const execution_context &context, array *out=nullptr)
Compute the element-wise sign of an array.
array add(const_array_ref x, const_array_ref y, const execution_context &context, array *out=nullptr)
Compute the element-wise sum of two arrays.
array negate(const_array_ref x, const execution_context &context, array *out=nullptr)
Compute the element-wise negation of an array.