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

Method SetSizes

library/cpp/containers/2d_array/2d_array.h:68–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66 Destroy();
67 }
68 void SetSizes(size_t xsize, size_t ysize) {
69 if (XSize == xsize && YSize == ysize)
70 return;
71 Destroy();
72 XSize = xsize;
73 YSize = ysize;
74 Create();
75 }
76 void Clear() {
77 SetSizes(1, 1);
78 }

Callers 9

BuildDistributionTreeFunction · 0.80
RunMasterMethod · 0.80
Do2DArrayMethod · 0.80
Do2DArrayDataMethod · 0.80
AllocateCtrDataMethod · 0.80
DoMapMethod · 0.80
AllocateCtrDataMethod · 0.80

Calls 2

DestroyFunction · 0.50
CreateFunction · 0.50

Tested by

no test coverage detected