add col maker

This commit is contained in:
tqchen
2014-03-01 14:00:09 -08:00
parent 1f04893784
commit 394d325078
5 changed files with 315 additions and 60 deletions

View File

@@ -246,9 +246,9 @@ namespace xgboost{
return it;
}
/*! \brief get col iterator */
inline ColIter GetReverseSortedCol( size_t cidx ) const{
inline ColBackIter GetReverseSortedCol( size_t cidx ) const{
utils::Assert( !bst_debug || cidx < this->NumCol(), "col id exceed bound" );
ColIter it;
ColBackIter it;
it.dptr_ = &col_data_[ col_ptr_[cidx+1] ];
it.end_ = &col_data_[ col_ptr_[cidx] ];
return it;