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/parameters/sequence_length.hpp>
10#include <rexlib/ops/rules/shape_rules.hpp>
11#include <rexlib/ops/rules/type_rules.hpp>
20REXLIB_DECLARE_PARAMETRIC_OPERATION_TRAITS(
23 REXLIB_OPERANDS(
"result"),
27 nullary_free_rule<inexact_type_domain>
49REXLIB_BEGIN_TEMPLATE_BASE
Container for multidimensional numeric data.
Definition array.hpp:31
Write evenly spaced samples of the segment from start to stop.
Definition linspace_operation.hpp:52
linspace_operation(const scalar_value &start, const scalar_value &stop, std::size_t count, bool endpoint=true)
Construct a linspace operation.
const scalar_value & get_start() const noexcept
Get the value of the first element.
CRTP base for operations whose signature depends on parameters.
Definition parametric_operation.hpp:43
Owns a copy of a dynamically typed scalar value.
Definition scalar_value.hpp:35
operand_shape_rule< type_list< extent_from_operation< count_of > >, type_list< core_dimensions< axis_same_as< 0 > > >, type_list<> > sequence_shape_rule
Sequence of as many values as the operation names.
Definition shape_rules.hpp:286
Arrays, the operations on them and the devices that run those operations.
Definition cpu_device.hpp:10
array linspace(const scalar_value &start, const scalar_value &stop, std::size_t count, numerical_type data_type, memory_resource_affinity affinity, const execution_context &context, array *out=nullptr)
Create a one dimensional array of evenly spaced samples.