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

Method NextNonZero

python-package/compile/src/c_api.cpp:1900–1911  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1898}
1899
1900std::pair<int, double> CSC_RowIterator::NextNonZero() {
1901 if (!is_end_) {
1902 auto ret = iter_fun_(nonzero_idx_);
1903 ++nonzero_idx_;
1904 if (ret.first < 0) {
1905 is_end_ = true;
1906 }
1907 return ret;
1908 } else {
1909 return std::make_pair(-1, 0.0);
1910 }
1911}

Callers 1

Calls 1

make_pairFunction · 0.85

Tested by

no test coverage detected