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

Function __max

src/modules/lda/lda.cpp:136–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134 * @note The caller will ensure that ah is always non-null.
135 **/
136template<class T> static T __max(
137 ArrayHandle<T> ah, size_t start, size_t len){
138 const T * array = ah.ptr() + start;
139 return *std::max_element(array, array + len);
140}
141template<class T> static T __max(ArrayHandle<T> ah){
142 return __max(ah, 0, ah.size());
143}

Callers 1

runMethod · 0.85

Calls 2

ptrMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected