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

Function CreateCompressedArray

catboost/libs/helpers/ut/compression_ut.cpp:33–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31
32 template <class T>
33 TCompressedArray CreateCompressedArray(TConstArrayRef<T> data, ui32 bitsPerKey) {
34 return TCompressedArray(
35 data.size(),
36 bitsPerKey,
37 TMaybeOwningArrayHolder<ui64>::CreateOwning(
38 CompressVector<ui64>(data.data(), data.size(), bitsPerKey)
39 )
40 );
41 }
42
43 template <class T>
44 void TestEqualityComparisonOnGenerated() {

Callers

nothing calls this directly

Calls 3

TCompressedArrayClass · 0.85
sizeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected