5#include "../layout/strided_layout.hpp"
6#include "../numerical/numerical_type.hpp"
7#include "../platform/dynamic_shared_object.h"
86 lhs.get_data_type() ==
rhs.get_data_type() &&
87 lhs.get_layout() ==
rhs.get_layout();
90 friend bool operator!=(
99 strided_layout m_layout;
147struct hash<
rexlib::array_descriptor>
149 std::size_t operator()(
153 return descriptor.hash();
Description of the memory representation of a multidimensional array.
Definition array_descriptor.hpp:22
std::size_t hash() const noexcept
Get the hash value for this descriptor.
const strided_layout & get_layout() const noexcept
Get the layout of the array.
numerical_type get_data_type() const noexcept
Get the data type of the array.
array_descriptor() noexcept
Default construct the descriptor with an empty layout and unknown numerical type.
Container for multidimensional numeric data.
Definition array.hpp:31
Definition strided_layout.hpp:21
Arrays, the operations on them and the devices that run those operations.
Definition cpu_device.hpp:10
bool is_initialized(const array_descriptor &descriptor) noexcept
Check if the array descriptor is initialized.
std::size_t compute_storage_requirement(const array_descriptor &descriptor)
Compute the number of bytes required to store the given descriptor.
numerical_type
Representation of all considered numerical types for computations.
Definition numerical_type.hpp:19
array_descriptor make_contiguous_array_descriptor(span< const std::size_t > extents, numerical_type data_type)
Create an array descriptor with a contiguous layout.