20 template <
typename T =
double>
50 return os <<
"[" << s.
start <<
",...]";
Generator from a sequence.
Definition: sequence.hpp:21
static constexpr bool gpu_computable
Indicates if the operator is computable on GPU.
Definition: sequence.hpp:27
auto s(T &&value)
Force the evaluation of the given expression.
Definition: stop.hpp:18
friend std::ostream & operator<<(std::ostream &os, const sequence_generator_op &s)
Outputs the given generator to the given stream.
Definition: sequence.hpp:49
const value_type start
The beginning of the sequence.
Definition: sequence.hpp:24
T value_type
The value type.
Definition: sequence.hpp:22
Root namespace for the ETL library.
Definition: adapter.hpp:15
sequence_generator_op(value_type start=0)
Construct a new generator with the given sequence start.
Definition: sequence.hpp:33
value_type current
The current sequence element.
Definition: sequence.hpp:25
value_type operator()()
Generate a new value.
Definition: sequence.hpp:39