MCPcopy Create free account
hub / github.com/bytedance/bolt / arraySum

Method arraySum

bolt/expression/tests/SimpleFunctionTest.cpp:56–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54class SimpleFunctionTest : public functions::test::FunctionBaseTest {
55 protected:
56 VectorPtr arraySum(const std::vector<std::vector<int64_t>>& data) {
57 return makeFlatVector<int64_t>(data.size(), [&](auto row) {
58 return std::accumulate(data[row].begin(), data[row].end(), 0);
59 });
60 }
61
62 template <typename T>
63 struct CallNullFreeFuncVoidOut {

Callers

nothing calls this directly

Calls 4

accumulateFunction · 0.85
sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected