5#include <rexlib/core/numerical/scalar_value.hpp>
6#include <rexlib/core/operation/operation_declaration_macros.hpp>
7#include <rexlib/core/platform/dynamic_shared_object.h>
8#include <rexlib/ops/ops_component.hpp>
9#include <rexlib/ops/rules/shape_rules.hpp>
10#include <rexlib/ops/rules/type_rules.hpp>
17REXLIB_DECLARE_OPERATION_TRAITS(
20 REXLIB_OPERANDS(
"destination"),
32REXLIB_BEGIN_TEMPLATE_BASE
Container for multidimensional numeric data.
Definition array.hpp:31
Fill an array with a constant value.
Definition fill_operation.hpp:35
const scalar_value & get_fill_value() const noexcept
Get the fill value.
fill_operation(const scalar_value &fill_value) noexcept
Construct a fill operation by the value used to fill.
Owns a copy of a dynamically typed scalar value.
Definition scalar_value.hpp:35
CRTP base for operations that are trivially declared.
Definition trivial_operation.hpp:34
operand_shape_rule< type_list<>, type_list< core_dimensions<> >, type_list<>, trailing_core, output_batch::broadcast_target > nullary_elementwise_shape_rule
Operation without operands to read that writes into the outputs it is handed, whatever their shape.
Definition shape_rules.hpp:51
Arrays, the operations on them and the devices that run those operations.
Definition cpu_device.hpp:10
void fill(array &out, const scalar_value &fill_value, const execution_context &context)
Set all the elements of an array to a given value.