5#include "numerical_type.hpp"
6#include "fixed_width_float.hpp"
7#include "../memory/byte.hpp"
21 :
public std::exception
24 using exception::exception;
87 alignas(storage_alignment) std::
array<
byte, storage_size> m_storage;
127#include "scalar_value.inl"
Container for multidimensional numeric data.
Definition array.hpp:31
Exception thrown when accessing a scalar_value with an incorrect type.
Definition scalar_value.hpp:22
Owns a copy of a dynamically typed scalar value.
Definition scalar_value.hpp:35
const T & get() const
Type-safe access to the stored value.
const T * get_if() const noexcept
Type-safe, non-throwing access to the stored value.
numerical_type get_data_type() const noexcept
Get the numerical type of the stored value.
scalar_value(const T &value) noexcept
Construct a new scalar value object holding a copy of the input.
Arrays, the operations on them and the devices that run those operations.
Definition cpu_device.hpp:10
T scalar_value_cast(const scalar_value &value)
Convert the value held by a scalar_value into a concrete type.
numerical_type
Representation of all considered numerical types for computations.
Definition numerical_type.hpp:19
REXLIB_CONSTEXPR auto visit(F &&func, const dynamic_subscript &subscript)
Invoke the provided function with the value held by the dynamic subscript.