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

Method InnerRawGet

python-package/compile/src/io/sparse_bin.hpp:442–451  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

440
441template <typename VAL_T>
442inline VAL_T SparseBinIterator<VAL_T>::InnerRawGet(data_size_t idx) {
443 while (cur_pos_ < idx) {
444 bin_data_->NextNonzero(&i_delta_, &cur_pos_);
445 }
446 if (cur_pos_ == idx) {
447 return bin_data_->vals_[i_delta_];
448 } else {
449 return 0;
450 }
451}
452
453template <typename VAL_T>
454inline void SparseBinIterator<VAL_T>::Reset(data_size_t start_idx) {

Callers 3

SplitMethod · 0.45
SplitCategoricalMethod · 0.45
CopySubsetMethod · 0.45

Calls 1

NextNonzeroMethod · 0.45

Tested by

no test coverage detected