MCPcopy Create free account
hub / github.com/catboost/catboost / AddCompToSelectedList

Function AddCompToSelectedList

library/cpp/par/distr_tree.h:19–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17 void ProjectExecPlan(TVector<ui16>* res, const TVector<bool>& selectedComps);
18
19 inline void AddCompToSelectedList(TVector<bool>* res, int n) {
20 if (n >= res->ysize())
21 res->resize(n + 1, false);
22 (*res)[n] = true;
23 }
24 void GetSelectedCompList(TVector<bool>* res, const TVector<ui16>& plan);
25
26 // add as a leaf to the top node

Callers 1

GetSelectedCompListFunction · 0.85

Calls 2

ysizeMethod · 0.45
resizeMethod · 0.45

Tested by

no test coverage detected