MCPcopy Create free account
hub / github.com/antmachineintelligence/mtgbmcode / EmptyBitset

Function EmptyBitset

include/LightGBM/utils/common.h:840–844  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

838}
839
840inline static std::vector<uint32_t> EmptyBitset(int n) {
841 int size = n / 32;
842 if (n % 32 != 0) ++size;
843 return std::vector<uint32_t>(size);
844}
845
846template<typename T>
847inline static void InsertBitset(std::vector<uint32_t>* vec, const T val) {

Callers 2

InitMethod · 0.50
InitMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected