in src/vector_of_kll.cpp [309:318]
void vector_of_kll_sketches<T, C>::merge(const vector_of_kll_sketches<T>& other) {
if (d_ != other.get_d()) {
throw std::invalid_argument("Must have same number of dimensions to merge: " + std::to_string(d_)
+ " vs " + std::to_string(other.d_));
} else {
for (uint32_t i = 0; i < d_; ++i) {
sketches_[i].merge(other.sketches_[i]);
}
}
}