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

Function FindInBitset

include/LightGBM/utils/common.h:872–879  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

870
871template<typename T>
872inline static bool FindInBitset(const uint32_t* bits, int n, T pos) {
873 int i1 = pos / 32;
874 if (i1 >= n) {
875 return false;
876 }
877 int i2 = pos % 32;
878 return (bits[i1] >> i2) & 1;
879}
880
881inline static bool CheckDoubleEqualOrdered(double a, double b) {
882 double upper = std::nextafter(a, INFINITY);

Callers 8

SplitCategoricalMethod · 0.50
SplitCategoricalMethod · 0.50
SplitCategoricalMethod · 0.50
NodeToJSONMethod · 0.50
CategoricalDecisionMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected