MCPcopy Create free account
hub / github.com/bloomen/transwarp / copy_transform

Function copy_transform

examples/wide_graph_with_pool.cpp:23–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21}
22
23data_t copy_transform(data_t data) {
24 auto copy = std::make_shared<std::vector<double>>(*data);
25 return transform(copy);
26}
27
28double mean(data_t data) {
29 return std::accumulate(data->begin(), data->end(), 0.) / static_cast<double>(data->size());

Callers

nothing calls this directly

Calls 1

transformFunction · 0.70

Tested by

no test coverage detected