Definition at line 290 of file span_test.cc.
float makeTransformedSpanDocumentation1TestClass::accumulate |
( |
std::vector< std::unique_ptr< float >> const & |
v | ) |
|
|
inline |
Definition at line 304 of file span_test.cc.
auto make_transformed_span(BIter begin, EIter end, Op &&op)
void makeTransformedSpanDocumentation1TestClass::analyse |
( |
| ) |
|
|
inline |
void makeTransformedSpanDocumentation1TestClass::analyse_accumulate |
( |
| ) |
|
|
inline |
Definition at line 330 of file span_test.cc.
332 float const salt = 3.0;
333 constexpr std::size_t
N = 10;
335 std::vector<std::unique_ptr<float>> data;
337 data.push_back(std::make_unique<float>(salt * i));
340 float const expectedSum = (N * (N - 1) / 2) * salt;
342 BOOST_TEST(sum == expectedSum);
auto counter(T begin, T end)
Returns an object to iterate values from begin to end in a range-for loop.
process_name largeant stream1 can override from command line with o or output physics producers generator N
void makeTransformedSpanDocumentation1TestClass::analyse_scale |
( |
| ) |
|
|
inline |
Definition at line 346 of file span_test.cc.
348 constexpr std::size_t
N = 10;
349 const float factor = 3.0F;
351 std::vector<std::unique_ptr<float>> data;
353 data.push_back(std::make_unique<float>(i));
358 BOOST_TEST(*ptr == factor * i);
auto enumerate(Iterables &&...iterables)
Range-for loop helper tracking the number of iteration.
auto counter(T begin, T end)
Returns an object to iterate values from begin to end in a range-for loop.
process_name largeant stream1 can override from command line with o or output physics producers generator N
void makeTransformedSpanDocumentation1TestClass::scale |
( |
std::vector< std::unique_ptr< float >> & |
v, |
|
|
float |
factor |
|
) |
| |
|
inline |
Definition at line 322 of file span_test.cc.
auto make_transformed_span(BIter begin, EIter end, Op &&op)
The documentation for this struct was generated from the following file: