22 #ifndef KJB_CPP_M_VECTOR_UTIL_H
23 #define KJB_CPP_M_VECTOR_UTIL_H
41 template <
class Assignable_array_type>
44 Assignable_array_type tmp = array;
57 template <
class Array_type>
63 size_t half_length = (length+1) / 2;
65 for(
size_t i = 0;
i < half_length;
i++)
68 if(
i + half_length < length)
69 array[
i] += array[
i + half_length];
Definition for the Matrix class, a thin wrapper on the KJB Matrix struct and its related functionalit...
double reduce_in_place(Array_type &array, size_t length)
Definition: m_arith.h:58
size_t length(const C &cner)
Counts the total number of elements in a 2D STL-style container.
Definition: l_util.h:17
double reduce(const Assignable_array_type &array, size_t length)
Definition: m_arith.h:42
get the indices of edges in each direction for i
Definition: APPgetLargeConnectedEdges.m:48
Definition for the Vector class, a thin wrapper on the KJB Vector struct and its related functionalit...