5#include <rexlib/core/ndarray/array.hpp>
6#include <rexlib/core/ndarray/const_array_ref.hpp>
7#include <rexlib/core/span.hpp>
14class 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 amax(const_array_ref x, span< const std::ptrdiff_t > axes, bool keep_dimensions, const execution_context &context, array *out=nullptr)
Take the largest elements of an array along the given axes.
array sum(const_array_ref x, span< const std::ptrdiff_t > axes, bool keep_dimensions, const execution_context &context, array *out=nullptr)
Sum the elements of an array along the given axes.
array argmax(const_array_ref x, span< const std::ptrdiff_t > axes, bool keep_dimensions, const execution_context &context, array *out=nullptr)
Locate the largest elements of an array along the given axes.
array argmin(const_array_ref x, span< const std::ptrdiff_t > axes, bool keep_dimensions, const execution_context &context, array *out=nullptr)
Locate the smallest elements of an array along the given axes.
array amin(const_array_ref x, span< const std::ptrdiff_t > axes, bool keep_dimensions, const execution_context &context, array *out=nullptr)
Take the smallest elements of an array along the given axes.
array mean(const_array_ref x, span< const std::ptrdiff_t > axes, bool keep_dimensions, const execution_context &context, array *out=nullptr)
Average the elements of an array along the given axes.
REXLIB_CONSTEXPR slice all() noexcept
Construct an slice containing all positions in the axis.
array any(const_array_ref x, span< const std::ptrdiff_t > axes, bool keep_dimensions, const execution_context &context, array *out=nullptr)
Test whether any element along the given axes is true.
array product(const_array_ref x, span< const std::ptrdiff_t > axes, bool keep_dimensions, const execution_context &context, array *out=nullptr)
Multiply the elements of an array along the given axes.
array count_nonzero(const_array_ref x, span< const std::ptrdiff_t > axes, bool keep_dimensions, const execution_context &context, array *out=nullptr)
Count the non zero elements along the given axes.