MCPcopy Create free account
hub / github.com/apache/madlib / __sum

Function __sum

src/modules/lda/lda.cpp:150–154  ·  view source on GitHub ↗

* @brief Get the sum of an array - for parameter checking * @return The sum * @note The caller will ensure that ah is always non-null. **/

Source from the content-addressed store, hash-verified

148 * @note The caller will ensure that ah is always non-null.
149 **/
150static int32_t __sum(ArrayHandle<int32_t> ah){
151 const int32_t * array = ah.ptr();
152 size_t size = ah.size();
153 return std::accumulate(array, array + size, static_cast<int32_t>(0));
154}
155
156/**
157 * @brief This function learns the topics of words in a document and is the

Callers 1

runMethod · 0.85

Calls 2

ptrMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected