in src/vector_of_kll.cpp [495:503]
void vector_of_kll_sketches<T, C>::deserialize(const nb::bytes& sk_bytes,
uint32_t idx) {
if (idx >= d_) {
throw std::invalid_argument("request for invalid dimensions >= d ("
+ std::to_string(d_) +"): "+ std::to_string(idx));
}
// load the sketch into the proper index
sketches_[idx] = std::move(kll_sketch<T>::deserialize(sk_bytes.c_str(), sk_bytes.size()));
}