/
githubmirror
/
nbs
Обзор
Документация
Войти
/
githubmirror
/
nbs
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
library/cpp/erasure/helpers.h
29 строк
845 B
Anton Myagkov
Update ydb version to 24.4 (#4579)
07 фев 2026, 11:59
Не верифицирован
07 фев 2026, 11:59
2c21cae
Код
Авторство
О чём код?
#pragma once #include "public.h" namespace NErasure { // All vectors here are assumed to be sorted. TPartIndexList MakeSegment(int begin, int end); TPartIndexList MakeSingleton(int elem); TPartIndexList Difference(int begin, int end, const TPartIndexList& subtrahend); TPartIndexList Difference(const TPartIndexList& first, const TPartIndexList& second); TPartIndexList Difference(const TPartIndexList& first, int elem); TPartIndexList Intersection(const TPartIndexList& first, const TPartIndexList& second); TPartIndexList Union(const TPartIndexList& first, const TPartIndexList& second); bool Contains(const TPartIndexList& set, int elem); TPartIndexList UniqueSortedIndices(const TPartIndexList& indices); TPartIndexList ExtractRows(const TPartIndexList& matrix, int width, const TPartIndexList& rows); } // namespace NErasure