5#include <rexlib/core/span.hpp>
6#include <rexlib/core/platform/dynamic_shared_object.h>
29 std::vector<std::size_t> &extents1,
30 std::vector<std::size_t> &extents2
43 std::vector<std::size_t> &result,
Represents a non-owning area of contiguous memory.
Definition span.hpp:99
Arrays, the operations on them and the devices that run those operations.
Definition cpu_device.hpp:10
bool is_broadcastable_to(span< const std::size_t > from_extents, span< const std::size_t > to_extents) noexcept
Check if a set of extents can be broadcasted into another.
void broadcast_extents_accumulate(std::vector< std::size_t > &result, span< const std::size_t > other)
Perform an cumulative extent broadcast step.
bool is_broadcast_compatible(span< const std::size_t > extents1, span< const std::size_t > extents2) noexcept
Check if two extents can be broadcasted together.
void broadcast_extents(std::vector< std::size_t > &extents1, std::vector< std::size_t > &extents2)
Perform a broadcast operation between two sets of extents.