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

Method FillInversePermutation

catboost/cuda/data/permutation.cpp:30–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28}
29
30void NCatboostCuda::TDataPermutation::FillInversePermutation(TVector<ui32>& permutation) const {
31 TVector<ui32> order;
32 FillOrder(order);
33 permutation.resize(order.size());
34 for (ui32 i = 0; i < order.size(); ++i) {
35 permutation[order[i]] = i;
36 }
37}

Callers 2

CheckDataSetFunction · 0.80
CheckIndicesFunction · 0.80

Calls 2

resizeMethod · 0.45
sizeMethod · 0.45

Tested by 2

CheckDataSetFunction · 0.64
CheckIndicesFunction · 0.64